icinga-powershell-framework/lib/icinga/plugin/Get-IcingaThresholdCache.psm1

17 lines
378 B
PowerShell
Raw Normal View History

function Get-IcingaThresholdCache()
{
param (
[string]$CheckCommand = $null
);
if ([string]::IsNullOrEmpty($CheckCommand)) {
return $null;
}
2021-12-09 11:42:06 -05:00
if ($Global:Icinga.Private.Scheduler.ThresholdCache.ContainsKey($CheckCommand) -eq $FALSE) {
return $null;
}
2021-12-09 11:42:06 -05:00
return $Global:Icinga.Private.Scheduler.ThresholdCache[$CheckCommand];
}