Functions/PoShMon.Notifications.Pushbullet/New-PushbulletMessageSubject.ps1
Function New-PushbulletMessageSubject { [CmdletBinding()] Param( [hashtable]$PoShMonConfiguration, [object[]]$TestOutputValues ) $issueCount = 0 foreach ($outputValue in $TestOutputValues) { if (($outputValue.NoIssuesFound -eq $false)) { $issueCount++ } } $subject = "[PoshMon $($PoShMonConfiguration.General.EnvironmentName) Monitoring Results ($issueCount Issue(s) Found)]" return $subject } |