2017-06-19 00:00:38 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
|
|
|
|
2023-02-22 11:46:24 +01:00
|
|
|
use Icinga\Module\Director\Auth\Permission;
|
|
|
|
|
2017-06-19 00:00:38 +02:00
|
|
|
class HostGroupsDashlet extends Dashlet
|
|
|
|
{
|
|
|
|
protected $icon = 'tags';
|
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->translate('Host Groups');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSummary()
|
|
|
|
{
|
|
|
|
return $this->translate(
|
|
|
|
'Define Host Groups to give your configuration more structure. They'
|
|
|
|
. ' are useful for Dashboards, Notifications or Restrictions'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUrl()
|
|
|
|
{
|
|
|
|
return 'director/hostgroups';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function listRequiredPermissions()
|
|
|
|
{
|
2023-02-22 11:46:24 +01:00
|
|
|
return [Permission::HOST_GROUPS];
|
2017-06-19 00:00:38 +02:00
|
|
|
}
|
|
|
|
}
|