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