2013-09-24 15:26:10 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-09-24 15:26:10 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
class Notification extends DataView
|
|
|
|
{
|
2015-06-08 17:09:24 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2013-09-24 15:26:10 +02:00
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
2015-01-21 15:47:36 +01:00
|
|
|
'host_display_name',
|
2015-06-08 17:09:24 +02:00
|
|
|
'host_name',
|
2016-09-14 16:18:08 +02:00
|
|
|
'notification_contact_name',
|
|
|
|
'notification_output',
|
2017-05-04 14:38:00 +02:00
|
|
|
'notification_reason',
|
2016-09-14 16:18:08 +02:00
|
|
|
'notification_state',
|
|
|
|
'notification_timestamp',
|
2015-06-08 17:09:24 +02:00
|
|
|
'object_type',
|
|
|
|
'service_description',
|
|
|
|
'service_display_name',
|
|
|
|
'service_host_name'
|
2013-09-24 15:26:10 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-06-08 17:09:24 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2013-09-24 15:26:10 +02:00
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
2016-09-14 16:18:08 +02:00
|
|
|
'notification_timestamp' => array(
|
|
|
|
'order' => self::SORT_DESC
|
2013-09-24 15:26:10 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2015-04-13 15:32:52 +02:00
|
|
|
|
2015-06-08 17:09:24 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2015-08-17 14:05:56 +02:00
|
|
|
public function getStaticFilterColumns()
|
2015-04-13 15:32:52 +02:00
|
|
|
{
|
2015-06-08 17:09:24 +02:00
|
|
|
return array(
|
2016-09-14 16:18:08 +02:00
|
|
|
'hostgroup_name',
|
|
|
|
'instance_name',
|
|
|
|
'servicegroup_name'
|
2015-06-08 17:09:24 +02:00
|
|
|
);
|
2015-04-13 15:32:52 +02:00
|
|
|
}
|
2015-06-25 13:21:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getSearchColumns()
|
|
|
|
{
|
2015-07-31 15:15:13 +02:00
|
|
|
return array('host_display_name', 'service_display_name');
|
2015-06-25 13:21:43 +02:00
|
|
|
}
|
2013-09-24 15:26:10 +02:00
|
|
|
}
|