2016-12-14 14:53:29 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
|
|
|
|
|
|
|
class NotificationsDashlet extends Dashlet
|
|
|
|
{
|
|
|
|
protected $icon = 'megaphone';
|
|
|
|
|
|
|
|
protected $requiredStats = array('notification');
|
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->translate('Notifications');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSummary()
|
|
|
|
{
|
|
|
|
return $this->translate(
|
|
|
|
'Schedule your notifications. Define who should be notified, when,'
|
|
|
|
. ' and for which kind of problem'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2016-12-14 15:00:51 +01:00
|
|
|
public function listRequiredPermissions()
|
|
|
|
{
|
|
|
|
return array('director/notifications');
|
|
|
|
}
|
|
|
|
|
2016-12-14 14:53:29 +01:00
|
|
|
public function getUrl()
|
|
|
|
{
|
|
|
|
return 'director/dashboard?name=notifications';
|
|
|
|
}
|
|
|
|
}
|