Functions/PoShMon.Notifications.Twilio/Send-TwilioExceptionMessage.ps1
Function Send-TwilioExceptionMessage { [CmdletBinding()] Param( [hashtable]$PoShMonConfiguration, [hashtable]$NotificationSink, [System.Exception]$Exception, [string]$SubjectAction, [string]$BodyAction ) $subject = New-ShortExceptionMessageSubject -PoShMonConfiguration $PoShMonConfiguration -Action $SubjectAction $body = New-ShortExceptionMessageBody -Exception $Exception -Action $BodyAction Send-TwilioMessage -PoShMonConfiguration $PoShMonConfiguration -NotificationSink $NotificationSink ` -Subject $Subject -Body $Body -Critical $true } |