summaryrefslogtreecommitdiffstats
path: root/library/Director/IcingaConfig/TypeFilterSet.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--library/Director/IcingaConfig/TypeFilterSet.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/library/Director/IcingaConfig/TypeFilterSet.php b/library/Director/IcingaConfig/TypeFilterSet.php
new file mode 100644
index 0000000..dffd4cf
--- /dev/null
+++ b/library/Director/IcingaConfig/TypeFilterSet.php
@@ -0,0 +1,39 @@
+<?php
+
+namespace Icinga\Module\Director\IcingaConfig;
+
+class TypeFilterSet extends ExtensibleSet
+{
+ protected $allowedValues = array(
+ 'Problem',
+ 'Recovery',
+ 'Custom',
+ 'Acknowledgement',
+ 'DowntimeStart',
+ 'DowntimeEnd',
+ 'DowntimeRemoved',
+ 'FlappingStart',
+ 'FlappingEnd',
+ );
+
+ public function enumAllowedValues()
+ {
+ return array(
+ $this->translate('State changes') => array(
+ 'Problem' => $this->translate('Problem'),
+ 'Recovery' => $this->translate('Recovery'),
+ 'Custom' => $this->translate('Custom notification'),
+ ),
+ $this->translate('Problem handling') => array(
+ 'Acknowledgement' => $this->translate('Acknowledgement'),
+ 'DowntimeStart' => $this->translate('Downtime starts'),
+ 'DowntimeEnd' => $this->translate('Downtime ends'),
+ 'DowntimeRemoved' => $this->translate('Downtime removed'),
+ ),
+ $this->translate('Flapping') => array(
+ 'FlappingStart' => $this->translate('Flapping starts'),
+ 'FlappingEnd' => $this->translate('Flapping ends')
+ )
+ );
+ }
+}