parent
94693fe3e7
commit
819d20f17a
|
@ -21,6 +21,9 @@ class HostserviceproblemsummaryQuery extends IdoQuery
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $columnMap = array(
|
protected $columnMap = array(
|
||||||
|
'instances' => array(
|
||||||
|
'instance_name' => 'i.instance_name'
|
||||||
|
),
|
||||||
'services' => array(
|
'services' => array(
|
||||||
'host_name' => 'so.name1',
|
'host_name' => 'so.name1',
|
||||||
'service_description' => 'so.name2'
|
'service_description' => 'so.name2'
|
||||||
|
@ -76,6 +79,18 @@ class HostserviceproblemsummaryQuery extends IdoQuery
|
||||||
$this->joinedVirtualTables['services'] = true;
|
$this->joinedVirtualTables['services'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Join instances
|
||||||
|
*/
|
||||||
|
protected function joinInstances()
|
||||||
|
{
|
||||||
|
$this->select->join(
|
||||||
|
array('i' => $this->prefix . 'instances'),
|
||||||
|
'i.instance_id = so.instance_id',
|
||||||
|
array()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Join host groups
|
* Join host groups
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue