2013-10-04 10:09:00 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-10-04 10:09:00 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
class Contactgroup extends DataView
|
|
|
|
{
|
2015-06-15 15:08:04 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
2013-10-04 10:09:00 +02:00
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'contactgroup_name',
|
2013-10-15 19:56:33 +02:00
|
|
|
'contactgroup_alias',
|
2016-03-31 09:14:15 +02:00
|
|
|
'contact_count'
|
2013-10-04 10:09:00 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-06-15 15:08:04 +02:00
|
|
|
* {@inheritdoc}
|
2013-10-04 10:09:00 +02:00
|
|
|
*/
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'contactgroup_name' => array(
|
2014-02-21 11:27:15 +01:00
|
|
|
'order' => self::SORT_ASC
|
|
|
|
),
|
|
|
|
'contactgroup_alias' => array(
|
|
|
|
'order' => self::SORT_ASC
|
2013-10-04 10:09:00 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2015-04-10 12:17:52 +02:00
|
|
|
|
2015-06-15 15:08:04 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2015-08-17 14:04:26 +02:00
|
|
|
public function getStaticFilterColumns()
|
2015-04-10 12:17:52 +02:00
|
|
|
{
|
2015-06-15 15:08:04 +02:00
|
|
|
return array(
|
2016-03-31 09:14:15 +02:00
|
|
|
'contactgroup',
|
2015-06-15 15:08:04 +02:00
|
|
|
'host', 'host_name', 'host_display_name', 'host_alias',
|
|
|
|
'hostgroup', 'hostgroup_alias', 'hostgroup_name',
|
2016-03-31 09:14:15 +02:00
|
|
|
'instance_name',
|
2015-06-15 15:08:04 +02:00
|
|
|
'service', 'service_description', 'service_display_name',
|
|
|
|
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
|
|
|
);
|
2015-04-10 12:17:52 +02:00
|
|
|
}
|
2015-06-25 13:12:54 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getSearchColumns()
|
|
|
|
{
|
2015-07-31 15:15:13 +02:00
|
|
|
return array('contactgroup_alias');
|
2015-06-25 13:12:54 +02:00
|
|
|
}
|
2013-10-04 10:09:00 +02:00
|
|
|
}
|