mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
Dashboard: add scheduled downtimes
This commit is contained in:
parent
219958d93f
commit
34cb7524bc
@ -8,6 +8,8 @@ class AlertsDashboard extends Dashboard
|
||||
'Notifications',
|
||||
'Users',
|
||||
'Timeperiods',
|
||||
'DependencyObject',
|
||||
'ScheduledDowntimeApply',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
@ -8,8 +8,6 @@ class ObjectsDashboard extends Dashboard
|
||||
'HostObject',
|
||||
'ServiceObject',
|
||||
'CommandObject',
|
||||
// 'Notifications',
|
||||
'DependencyObject',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
|
Loading…
x
Reference in New Issue
Block a user