2013-10-04 10:09:00 +02:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2013-10-04 10:09:00 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
class Contact extends DataView
|
|
|
|
{
|
2015-06-15 13:47:48 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
2013-10-04 10:09:00 +02:00
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
2015-08-25 16:32:27 +02:00
|
|
|
'instance_name',
|
2015-06-15 13:47:48 +02:00
|
|
|
'contact_object_id',
|
2015-04-14 12:27:54 +02:00
|
|
|
'contact_id',
|
2013-10-04 10:09:00 +02:00
|
|
|
'contact_name',
|
2015-04-10 12:23:35 +02:00
|
|
|
'contact_alias',
|
|
|
|
'contact_email',
|
2013-10-04 10:09:00 +02:00
|
|
|
'contact_pager',
|
|
|
|
'contact_has_host_notfications',
|
|
|
|
'contact_has_service_notfications',
|
|
|
|
'contact_can_submit_commands',
|
|
|
|
'contact_notify_service_recovery',
|
|
|
|
'contact_notify_service_warning',
|
|
|
|
'contact_notify_service_critical',
|
|
|
|
'contact_notify_service_unknown',
|
|
|
|
'contact_notify_service_flapping',
|
|
|
|
'contact_notify_service_downtime',
|
|
|
|
'contact_notify_host_recovery',
|
|
|
|
'contact_notify_host_down',
|
|
|
|
'contact_notify_host_unreachable',
|
|
|
|
'contact_notify_host_flapping',
|
|
|
|
'contact_notify_host_downtime',
|
2015-04-14 12:27:54 +02:00
|
|
|
'contact_notify_host_timeperiod',
|
|
|
|
'contact_notify_service_timeperiod'
|
2013-10-04 10:09:00 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-06-15 13:47:48 +02:00
|
|
|
* {@inheritdoc}
|
2013-10-04 10:09:00 +02:00
|
|
|
*/
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
2015-06-15 13:47:48 +02:00
|
|
|
'contact_name' => array(
|
|
|
|
'order' => self::SORT_ASC
|
2013-10-04 10:09:00 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2015-04-10 09:49:47 +02:00
|
|
|
|
2015-06-15 13:47:48 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2015-08-17 14:04:33 +02:00
|
|
|
public function getStaticFilterColumns()
|
2015-04-10 09:49:47 +02:00
|
|
|
{
|
2015-06-15 13:47:48 +02:00
|
|
|
return array(
|
|
|
|
'contact',
|
2015-10-02 11:16:35 +02:00
|
|
|
'contactgroup', 'contactgroup_name', 'contactgroup_alias',
|
2015-06-15 13:47:48 +02:00
|
|
|
'host', 'host_name', 'host_display_name', 'host_alias',
|
|
|
|
'hostgroup', 'hostgroup_alias', 'hostgroup_name',
|
|
|
|
'service', 'service_description', 'service_display_name',
|
|
|
|
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
|
|
|
);
|
2015-04-10 09:49:47 +02:00
|
|
|
}
|
2015-06-25 13:17:36 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getSearchColumns()
|
|
|
|
{
|
2015-07-31 15:15:13 +02:00
|
|
|
return array('contact_alias');
|
2015-06-25 13:17:36 +02:00
|
|
|
}
|
2013-10-04 10:09:00 +02:00
|
|
|
}
|