Livestatus\StatusQuery: add terribly setMode method

This commit is contained in:
Thomas Gelf 2014-11-16 15:18:10 +01:00
parent 0916f57ce8
commit 7b73215868
1 changed files with 23 additions and 0 deletions

View File

@ -8,6 +8,29 @@ use Icinga\Protocol\Livestatus\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(
'host_name',
'host_display_name',