Dashboard: add scheduled downtimes

This commit is contained in:
Thomas Gelf 2018-06-08 16:42:53 +02:00
parent 219958d93f
commit 34cb7524bc
3 changed files with 22 additions and 2 deletions

View File

@ -8,6 +8,8 @@ class AlertsDashboard extends Dashboard
'Notifications',
'Users',
'Timeperiods',
'DependencyObject',
'ScheduledDowntimeApply',
);
public function getTitle()

View File

@ -0,0 +1,20 @@
<?php
namespace Icinga\Module\Director\Dashboard\Dashlet;
class ScheduledDowntimeApplyDashlet extends Dashlet
{
protected $icon = 'plug';
protected $requiredStats = ['scheduled_downtime'];
public function getTitle()
{
return $this->translate('Scheduled Downtimes');
}
public function getUrl()
{
return 'director/scheduled_downtimes/applyrules';
}
}

View File

@ -8,8 +8,6 @@ class ObjectsDashboard extends Dashboard
'HostObject',
'ServiceObject',
'CommandObject',
// 'Notifications',
'DependencyObject',
);
public function getTitle()