2013-10-18 11:26:15 +02:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2013-10-18 11:26:15 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* View for runtimevariables query
|
|
|
|
*/
|
|
|
|
class Runtimevariables extends DataView
|
|
|
|
{
|
|
|
|
/**
|
2015-08-17 14:03:44 +02:00
|
|
|
* {@inheritdoc}
|
2013-10-18 11:26:15 +02:00
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'id',
|
|
|
|
'varname',
|
|
|
|
'varvalue'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-08-17 14:03:44 +02:00
|
|
|
* {@inheritdoc}
|
2013-10-18 11:26:15 +02:00
|
|
|
*/
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'id' => array(
|
|
|
|
'order' => self::SORT_ASC
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|