diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:17:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:17:31 +0000 |
commit | f66ab8dae2f3d0418759f81a3a64dc9517a62449 (patch) | |
tree | fbff2135e7013f196b891bbde54618eb050e4aaf /library/Director/Dashboard/NotificationsDashboard.php | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-director-f66ab8dae2f3d0418759f81a3a64dc9517a62449.tar.xz icingaweb2-module-director-f66ab8dae2f3d0418759f81a3a64dc9517a62449.zip |
Adding upstream version 1.10.2.upstream/1.10.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library/Director/Dashboard/NotificationsDashboard.php')
-rw-r--r-- | library/Director/Dashboard/NotificationsDashboard.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/library/Director/Dashboard/NotificationsDashboard.php b/library/Director/Dashboard/NotificationsDashboard.php new file mode 100644 index 0000000..b7d72f5 --- /dev/null +++ b/library/Director/Dashboard/NotificationsDashboard.php @@ -0,0 +1,44 @@ +<?php + +namespace Icinga\Module\Director\Dashboard; + +class NotificationsDashboard extends Dashboard +{ + protected $dashletNames = [ + 'NotificationApply', + 'NotificationTemplate', + ]; + + public function getTitle() + { + return $this->translate('Schedule your notifications'); + } + + public function getDescription() + { + return $this->translate( + 'Notifications are sent when a host or service reaches a non-ok hard' + . ' state or recovers from such. One might also want to send them for' + . ' special events like when a Downtime starts, a problem gets' + . ' acknowledged and much more. You can send specific notifications' + . ' only within specific time periods, you can delay them and of course' + . ' re-notify at specific intervals.' + . "\n\n" + . ' Combine those possibilities in case you need to define escalation' + . ' levels, like notifying operators first and your management later on' + . ' in case the problem remains unhandled for a certain time.' + . "\n\n" + . ' You might send E-Mail or SMS, make phone calls or page on various' + . ' channels. You could also delegate notifications to external service' + . ' providers. The possibilities are endless, as you are allowed to' + . ' define as many custom notification commands as you want' + ); + } + + public function getTabs() + { + return $this->createTabsForDashboards( + ['notifications', 'users', 'timeperiods'] + ); + } +} |