mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
16 lines
378 B
PowerShell
16 lines
378 B
PowerShell
function Get-IcingaThresholdCache()
|
|
{
|
|
param (
|
|
[string]$CheckCommand = $null
|
|
);
|
|
|
|
if ([string]::IsNullOrEmpty($CheckCommand)) {
|
|
return $null;
|
|
}
|
|
|
|
if ($Global:Icinga.Private.Scheduler.ThresholdCache.ContainsKey($CheckCommand) -eq $FALSE) {
|
|
return $null;
|
|
}
|
|
|
|
return $Global:Icinga.Private.Scheduler.ThresholdCache[$CheckCommand];
|
|
}
|