mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
parent
a1a89730e3
commit
825ee4c666
1 changed files with 8 additions and 0 deletions
|
|
@ -36,6 +36,14 @@ function New-IcingaCheckPackage()
|
|||
$Check | Add-Member -membertype NoteProperty -name 'criticalchecks' -value @();
|
||||
$Check | Add-Member -membertype NoteProperty -name 'unknownchecks' -value @();
|
||||
|
||||
$Check | Add-Member -membertype ScriptMethod -name 'HasChecks' -value {
|
||||
if ($this.checks -ne 0) {
|
||||
return $TRUE
|
||||
}
|
||||
|
||||
return $FALSE;
|
||||
}
|
||||
|
||||
$Check | Add-Member -membertype ScriptMethod -name 'Initialise' -value {
|
||||
foreach ($check in $this.checks) {
|
||||
$this.InitCheck($check);
|
||||
|
|
|
|||
Loading…
Reference in a new issue