diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:41:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:41:54 +0000 |
commit | 573e13afd00a36a8a331d69823045938a2215c71 (patch) | |
tree | 96906f4dd33b7b5660460372269b180af564d982 /library | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-boxydash-upstream.tar.xz icingaweb2-module-boxydash-upstream.zip |
Adding upstream version 0.0.1+20160321.upstream/0.0.1+20160321upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library')
-rw-r--r-- | library/BoxyDash/Grid.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/library/BoxyDash/Grid.php b/library/BoxyDash/Grid.php new file mode 100644 index 0000000..cec3940 --- /dev/null +++ b/library/BoxyDash/Grid.php @@ -0,0 +1,27 @@ +<?php + +namespace Icinga\Module\BoxyDash; + +use Icinga\Application\Config; +use Icinga\Exception\ConfigurationError; +use Icinga\Module\Monitoring\Object\MonitoredObject; +use Icinga\Module\Monitoring\Object\Host; +use Icinga\Module\Monitoring\Object\Service; +use Icinga\Web\Hook\GrapherHook; +use Icinga\Web\Url; + +class Grid extends WebBaseHook +{ + protected $hasPreviews = true; + + + + protected $baseUrl = '/boxydash'; + + protected function init() + { + $cfg = Config::module('boxydash')->getSection('boxydash'); + $this->baseUrl = rtrim($cfg->get('base_url', $this->baseUrl), '/'); + } + + |