mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
Livestatus\StatusQuery: add terribly setMode method
This commit is contained in:
parent
0916f57ce8
commit
7b73215868
@ -8,6 +8,29 @@ use Icinga\Protocol\Livestatus\Query;
|
|||||||
|
|
||||||
class StatusQuery extends Query
|
class StatusQuery extends Query
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* This mode represents whether we are in HostStatus or ServiceStatus
|
||||||
|
*
|
||||||
|
* Implemented for `distinct as workaround
|
||||||
|
*
|
||||||
|
* @TODO Subject to change, see #7344
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the mode of the current query
|
||||||
|
*
|
||||||
|
* @TODO Subject to change, see #7344
|
||||||
|
*
|
||||||
|
* @param string $mode
|
||||||
|
*/
|
||||||
|
public function setMode($mode)
|
||||||
|
{
|
||||||
|
$this->mode = $mode;
|
||||||
|
}
|
||||||
|
|
||||||
protected $available_columns = array(
|
protected $available_columns = array(
|
||||||
'host_name',
|
'host_name',
|
||||||
'host_display_name',
|
'host_display_name',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user