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…
Reference in New Issue