File: Grid.php

package info (click to toggle)
icingaweb2-module-boxydash 0.0.1%2B20160321-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 784 kB
  • sloc: php: 370; makefile: 13
file content (27 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (3)
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\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), '/');
    }