2013-10-15 06:48:33 -04:00
|
|
|
<?php
|
2016-02-08 09:41:00 -05:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-10-15 06:48:33 -04:00
|
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
|
|
class Customvar extends DataView
|
|
|
|
|
{
|
|
|
|
|
/**
|
2015-08-17 07:47:13 -04:00
|
|
|
* {@inheritdoc}
|
2013-10-15 06:48:33 -04:00
|
|
|
*/
|
|
|
|
|
public function getColumns()
|
|
|
|
|
{
|
|
|
|
|
return array(
|
|
|
|
|
'varname',
|
|
|
|
|
'varvalue',
|
2014-11-06 10:13:17 -05:00
|
|
|
'is_json',
|
2015-04-10 06:56:18 -04:00
|
|
|
'host_name',
|
|
|
|
|
'service_description',
|
|
|
|
|
'contact_name',
|
|
|
|
|
'object_type',
|
|
|
|
|
'object_type_id'
|
2013-10-15 06:48:33 -04:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2015-08-17 07:47:13 -04:00
|
|
|
* {@inheritdoc}
|
2013-10-15 06:48:33 -04:00
|
|
|
*/
|
|
|
|
|
public function getSortRules()
|
|
|
|
|
{
|
|
|
|
|
return array(
|
|
|
|
|
'varname' => array(
|
2015-07-28 05:42:40 -04:00
|
|
|
'columns' => array(
|
|
|
|
|
'varname',
|
|
|
|
|
'varvalue'
|
|
|
|
|
)
|
2013-10-15 06:48:33 -04:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
2015-04-10 06:56:18 -04:00
|
|
|
|
2015-08-17 07:47:13 -04:00
|
|
|
/**
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
*/
|
|
|
|
|
public function getStaticFilterColumns()
|
2015-04-10 06:56:18 -04:00
|
|
|
{
|
|
|
|
|
return array('host', 'service', 'contact');
|
|
|
|
|
}
|
2013-10-15 06:48:33 -04:00
|
|
|
}
|