diff options
Diffstat (limited to '')
-rw-r--r-- | library/Director/IcingaConfig/StateFilterSet.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/library/Director/IcingaConfig/StateFilterSet.php b/library/Director/IcingaConfig/StateFilterSet.php new file mode 100644 index 0000000..7a2daec --- /dev/null +++ b/library/Director/IcingaConfig/StateFilterSet.php @@ -0,0 +1,31 @@ +<?php + +namespace Icinga\Module\Director\IcingaConfig; + +class StateFilterSet extends ExtensibleSet +{ + protected $allowedValues = array( + 'Up', + 'Down', + 'OK', + 'Warning', + 'Critical', + 'Unknown', + ); + + public function enumAllowedValues() + { + return array( + $this->translate('Hosts') => array( + 'Up' => $this->translate('Up'), + 'Down' => $this->translate('Down') + ), + $this->translate('Services') => array( + 'OK' => $this->translate('OK'), + 'Warning' => $this->translate('Warning'), + 'Critical' => $this->translate('Critical'), + 'Unknown' => $this->translate('Unknown'), + ), + ); + } +} |