icingaweb2/modules/monitoring/library/Monitoring/DataView/Contactgroup.php
Matthias Jentsch 5d4533a6ad Add contact and contactgroup views
Create the new views, extend backend queries to fetch timeperiods and add
navigation bar entries

refs #4713
2013-10-09 09:32:21 +02:00

39 lines
815 B
PHP

<?php
namespace Icinga\Module\Monitoring\DataView;
/**
* Describes the data needed by the Contactgroup DataView
*/
class Contactgroup extends DataView
{
/**
* Retrieve columns provided by this view
*
* @return array
*/
public function getColumns()
{
return array(
'contact_name',
'contactgroup_name',
'contactgroup_alias'
);
}
/**
* Retrieve default sorting rules for particular columns. These involve sort order and potential additional to sort
*
* @return array
*/
public function getSortRules()
{
return array(
'contactgroup_name' => array(
'default_dir' => self::SORT_ASC,
'order' => self::SORT_DESC
)
);
}
}