mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
14 lines
324 B
PowerShell
14 lines
324 B
PowerShell
function Get-IcingaThreadPool()
|
|
{
|
|
param (
|
|
[string]$Name
|
|
);
|
|
|
|
if ($Global:Icinga.Public.ThreadPools.ContainsKey($Name)) {
|
|
return $Global:Icinga.Public.ThreadPools[$Name];
|
|
}
|
|
|
|
Write-IcingaEventMessage -Namespace 'Framework' -EventId 1401 -Objects $Name;
|
|
|
|
return (New-IcingaThreadPool);
|
|
}
|