mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
Disabling UseConsistentIndentation because it is not properly working for multi-line commands with arguments and array/hashtable objects
23 lines
623 B
PowerShell
23 lines
623 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Initialises the internal cache storage for Performance Counters
|
|
.DESCRIPTION
|
|
Initialises the internal cache storage for Performance Counters
|
|
.FUNCTIONALITY
|
|
Initialises the internal cache storage for Performance Counters
|
|
.EXAMPLE
|
|
PS>New-IcingaPerformanceCounterCache;
|
|
.LINK
|
|
https://github.com/Icinga/icinga-powershell-framework
|
|
#>
|
|
|
|
function New-IcingaPerformanceCounterCache()
|
|
{
|
|
if ($null -eq $global:Icinga_PerfCounterCache) {
|
|
$global:Icinga_PerfCounterCache = (
|
|
[hashtable]::Synchronized(
|
|
@{ }
|
|
)
|
|
);
|
|
}
|
|
}
|