summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/HostObjectDashlet.php
blob: 10cff9428d96e363b458d22678f9eab589cd3b5f (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
<?php

namespace Icinga\Module\Director\Dashboard\Dashlet;

class HostObjectDashlet extends Dashlet
{
    protected $icon = 'host';

    protected $requiredStats = array('host', 'hostgroup');

    public function getTitle()
    {
        return $this->translate('Host objects');
    }

    public function listRequiredPermissions()
    {
        return ['director/hosts'];
    }

    public function getUrl()
    {
        return 'director/dashboard?name=hosts';
    }
}