Functions/PoShMon.Monitoring.SharePoint/Invoke-SPMonitoring.ps1
Function Invoke-SPMonitoring { [CmdletBinding()] Param( [parameter(HelpMessage="A PoShMonConfiguration instance - use New-PoShMonConfiguration to create it")] [hashtable]$PoShMonConfiguration ) if ($PoShMonConfiguration -eq $null) { $PoShMonConfiguration = New-PoShMonConfiguration {} } if ($PoShMonConfiguration.SharePoint -eq $null) { $PoShMonConfiguration.SharePoint = New-SharePointConfig } $outputValues = Invoke-MonitoringCore ` -PoShMonConfiguration $PoShMonConfiguration ` -TestList (Get-SPTests) ` -FarmDiscoveryFunctionName 'Get-ServersInSPFarm' ` -OutputOptimizationList (Get-SPResolutions) ` -MergesList (Get-SPMerges) return $outputValues } |