mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Livestatus\ServicegroupQuery: initial commit
This commit is contained in:
parent
92c059a0d7
commit
8bd9a966e1
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
|
namespace Icinga\Module\Monitoring\Backend\Livestatus\Query;
|
||||||
|
|
||||||
|
use Icinga\Protocol\Livestatus\Query;
|
||||||
|
// SHITTY IT IS
|
||||||
|
class ServicegroupQuery extends Query
|
||||||
|
{
|
||||||
|
protected $table = 'servicegroups';
|
||||||
|
|
||||||
|
protected $available_columns = array(
|
||||||
|
'servicegroup_name' => 'name',
|
||||||
|
'servicegroup_alias' => 'alias',
|
||||||
|
'host' => array('members'),
|
||||||
|
'host_name' => array('members'),
|
||||||
|
'service' => array('members'),
|
||||||
|
'service_host_name' => array('members'),
|
||||||
|
'service_description' => array('members'),
|
||||||
|
);
|
||||||
|
|
||||||
|
public function xxcombineResult_service_host_name(& $row, & $res)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
var_dump($res);
|
||||||
|
die('Here you go');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function completeRow(& $row)
|
||||||
|
{
|
||||||
|
die('FU');
|
||||||
|
$row->severity = 12;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user