2013-09-24 09:26:10 -04:00
|
|
|
<?php
|
2014-07-15 07:39:22 -04:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
2013-09-24 09:26:10 -04: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 07:13:56 -04:00
|
|
|
'host',
|
|
|
|
|
'service',
|
|
|
|
|
'notification_state',
|
2013-09-24 09:26:10 -04:00
|
|
|
'notification_start_time',
|
|
|
|
|
'notification_contact',
|
2013-10-19 07:13:56 -04:00
|
|
|
'notification_output',
|
2015-01-21 09:47:36 -05:00
|
|
|
'notification_command',
|
|
|
|
|
'host_display_name',
|
|
|
|
|
'service_display_name'
|
2013-09-24 09:26:10 -04:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getSortRules()
|
|
|
|
|
{
|
|
|
|
|
return array(
|
|
|
|
|
'notification_start_time' => array(
|
2014-06-06 03:07:07 -04:00
|
|
|
'order' => self::SORT_DESC,
|
|
|
|
|
'title' => 'Notification Start'
|
2013-09-24 09:26:10 -04:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|