icinga-powershell-framework/lib/core/framework/Clear-IcingaCheckSchedulerCheckData.psm1

21 lines
667 B
PowerShell
Raw Normal View History

<#
.SYNOPSIS
Clear all cached values for all check commands executed by this thread.
This is mandatory as we might run into a memory leak otherwise!
.DESCRIPTION
Clear all cached values for all check commands executed by this thread.
This is mandatory as we might run into a memory leak otherwise!
.FUNCTIONALITY
Clear all cached values for all check commands executed by this thread.
This is mandatory as we might run into a memory leak otherwise!
.OUTPUTS
System.Object
.LINK
https://github.com/Icinga/icinga-powershell-framework
#>
function Clear-IcingaCheckSchedulerCheckData()
{
2021-12-09 11:42:06 -05:00
$global:Icinga.Private.Scheduler.CheckData.Clear();
}