From 3437691ce2e8360bac676d81c2a3cc76c85a9cf4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 19 Jun 2017 00:00:38 +0200 Subject: [PATCH] HostGroupsDashlet: just a new dashlet --- .../Dashboard/Dashlet/HostGroupsDashlet.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 library/Director/Dashboard/Dashlet/HostGroupsDashlet.php diff --git a/library/Director/Dashboard/Dashlet/HostGroupsDashlet.php b/library/Director/Dashboard/Dashlet/HostGroupsDashlet.php new file mode 100644 index 00000000..9cbca1f6 --- /dev/null +++ b/library/Director/Dashboard/Dashlet/HostGroupsDashlet.php @@ -0,0 +1,31 @@ +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() + { + return array('director/hosts'); + } +}