Livestatus\ServicegroupQuery: initial commit

This commit is contained in:
Thomas Gelf 2014-11-16 18:54:08 +01:00
parent 92c059a0d7
commit 8bd9a966e1
1 changed files with 36 additions and 0 deletions

View File

@ -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;
}
}