Jannis Moßhammer 44be5e85da Refactoring and Query and IDO code,
the Monitoring/View code was completly dropped in favor of
the DataView implementations, as new Backends otherwise
would require to implement two seperate query logics

refs #3801
2013-10-17 19:54:58 +02:00

42 lines
858 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',
'host',
'service'
);
}
/**
* 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
)
);
}
}