2013-10-15 19:56:33 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-10-15 19:56:33 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
/**
|
2015-06-05 14:42:11 +02:00
|
|
|
* Host group data view
|
2013-10-15 19:56:33 +02:00
|
|
|
*/
|
|
|
|
class Hostgroup extends DataView
|
|
|
|
{
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
2015-04-10 15:21:18 +02:00
|
|
|
'hostgroup_alias',
|
2015-06-05 14:42:11 +02:00
|
|
|
'hostgroup_name'
|
2013-10-15 19:56:33 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-07-27 15:03:12 +02:00
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'hostgroup_alias' => array(
|
|
|
|
'order' => self::SORT_ASC
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-08-17 14:05:24 +02:00
|
|
|
public function getStaticFilterColumns()
|
2013-10-15 19:56:33 +02:00
|
|
|
{
|
|
|
|
return array(
|
2017-07-27 15:03:12 +02:00
|
|
|
'instance_name', 'host_name', 'service_description', 'servicegroup_name'
|
2013-10-15 19:56:33 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|