summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/TimeperiodsDashboard.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--library/Director/Dashboard/TimeperiodsDashboard.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/library/Director/Dashboard/TimeperiodsDashboard.php b/library/Director/Dashboard/TimeperiodsDashboard.php
new file mode 100644
index 0000000..9821b94
--- /dev/null
+++ b/library/Director/Dashboard/TimeperiodsDashboard.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace Icinga\Module\Director\Dashboard;
+
+class TimeperiodsDashboard extends Dashboard
+{
+ protected $dashletNames = [
+ 'TimeperiodObject',
+ 'TimeperiodTemplate',
+ ];
+
+ public function getTitle()
+ {
+ return $this->translate('Define custom Time Periods');
+ }
+
+ public function getDescription()
+ {
+ return $this->translate(
+ 'Want to define to execute specific checks only withing specific'
+ . ' time periods? Get mobile notifications only out of office hours,'
+ . ' but mail notifications all around the clock? Time Periods allow'
+ . ' you to tackle those and similar requirements.'
+ );
+ }
+
+ public function getTabs()
+ {
+ return $this->createTabsForDashboards(
+ ['notifications', 'users', 'timeperiods']
+ );
+ }
+}