2013-10-15 19:56:33 +02:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2013-10-15 19:56:33 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
class Servicegroup extends DataView
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Retrieve columns provided by this view
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'servicegroup_name',
|
2015-04-10 15:35:24 +02:00
|
|
|
'servicegroup_alias',
|
|
|
|
'host_name',
|
|
|
|
'service_host_name',
|
|
|
|
'service_description'
|
2013-10-15 19:56:33 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieve default sorting rules for particular columns. These involve sort order and potential additional to sort
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'servicegroup_name' => array(
|
|
|
|
'order' => self::SORT_ASC
|
2015-04-10 15:35:24 +02:00
|
|
|
),
|
|
|
|
'servicegroup_alias' => array(
|
|
|
|
'order' => self::SORT_ASC
|
2013-10-15 19:56:33 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2015-04-10 15:35:24 +02:00
|
|
|
|
|
|
|
public function getFilterColumns()
|
|
|
|
{
|
|
|
|
return array('servicegroup', 'host', 'service');
|
|
|
|
}
|
2013-10-17 21:40:02 +02:00
|
|
|
}
|