Functions/PoShMon.MessageFormatters.Html.Monitoring/New-HtmlSubject.ps1
Function New-HtmlSubject { [CmdletBinding()] param( [hashtable]$PoShMonConfiguration, [System.Collections.ArrayList]$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 } |