2013-09-24 15:26:10 +02:00
|
|
|
<?php
|
2014-07-15 13:39:22 +02:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
2013-09-24 15:26:10 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
class Notification extends DataView
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Retrieve columns provided by this view
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
2013-10-19 13:13:56 +02:00
|
|
|
'host',
|
|
|
|
'service',
|
|
|
|
'notification_state',
|
2013-09-24 15:26:10 +02:00
|
|
|
'notification_start_time',
|
|
|
|
'notification_contact',
|
2013-10-19 13:13:56 +02:00
|
|
|
'notification_output',
|
2015-01-21 15:47:36 +01:00
|
|
|
'notification_command',
|
|
|
|
'host_display_name',
|
|
|
|
'service_display_name'
|
2013-09-24 15:26:10 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'notification_start_time' => array(
|
2014-06-06 09:07:07 +02:00
|
|
|
'order' => self::SORT_DESC,
|
|
|
|
'title' => 'Notification Start'
|
2013-09-24 15:26:10 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|