icingaweb2/modules/monitoring/library/Monitoring/DataView/Customvar.php

48 lines
914 B
PHP
Raw Normal View History

2013-10-15 12:48:33 +02:00
<?php
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
2013-10-15 12:48:33 +02:00
namespace Icinga\Module\Monitoring\DataView;
class Customvar extends DataView
{
/**
* {@inheritdoc}
2013-10-15 12:48:33 +02:00
*/
public function getColumns()
{
return array(
'varname',
'varvalue',
'is_json',
'host_name',
'service_description',
'contact_name',
'object_type',
'object_type_id'
2013-10-15 12:48:33 +02:00
);
}
/**
* {@inheritdoc}
2013-10-15 12:48:33 +02:00
*/
public function getSortRules()
{
return array(
'varname' => array(
'columns' => array(
'varname',
'varvalue'
)
2013-10-15 12:48:33 +02:00
)
);
}
/**
* {@inheritdoc}
*/
public function getStaticFilterColumns()
{
return array('host', 'service', 'contact');
}
2013-10-15 12:48:33 +02:00
}