summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php
blob: c9fbb685d2eb8315b057b944650037e2f447e121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Icinga\Module\Director\Dashboard\Dashlet;

use Icinga\Module\Director\Auth\Permission;

class ScheduledDowntimeApplyDashlet extends Dashlet
{
    protected $icon = 'plug';

    protected $requiredStats = ['scheduled_downtime'];

    public function getTitle()
    {
        return $this->translate('Scheduled Downtimes');
    }

    public function listRequiredPermissions()
    {
        return [Permission::SCHEDULED_DOWNTIMES];
    }

    public function getUrl()
    {
        return 'director/scheduled-downtimes/applyrules';
    }
}