mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-09 15:04:28 +02:00
parent
7916c149b9
commit
edb83c8b41
@ -6,6 +6,9 @@ namespace Icinga\Module\Monitoring\Backend\Ido\Query;
|
|||||||
class CustomvarQuery extends IdoQuery
|
class CustomvarQuery extends IdoQuery
|
||||||
{
|
{
|
||||||
protected $columnMap = array(
|
protected $columnMap = array(
|
||||||
|
'instances' => array(
|
||||||
|
'instance_name' => 'i.instance_name'
|
||||||
|
),
|
||||||
'customvariablestatus' => array(
|
'customvariablestatus' => array(
|
||||||
'varname' => 'cvs.varname',
|
'varname' => 'cvs.varname',
|
||||||
'varvalue' => 'cvs.varvalue',
|
'varvalue' => 'cvs.varvalue',
|
||||||
@ -55,6 +58,18 @@ class CustomvarQuery extends IdoQuery
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Join instances
|
||||||
|
*/
|
||||||
|
protected function joinInstances()
|
||||||
|
{
|
||||||
|
$this->select->join(
|
||||||
|
array('i' => $this->prefix . 'instances'),
|
||||||
|
'i.instance_id = cvs.instance_id',
|
||||||
|
array()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user