mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-28 18:40:11 +02:00
the Monitoring/View code was completly dropped in favor of the DataView implementations, as new Backends otherwise would require to implement two seperate query logics refs #3801
39 lines
830 B
PHP
39 lines
830 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
class Notification extends DataView
|
|
{
|
|
/**
|
|
* Retrieve columns provided by this view
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getColumns()
|
|
{
|
|
return array(
|
|
'host_name',
|
|
'service_description',
|
|
'notification_type',
|
|
'notification_reason',
|
|
'notification_start_time',
|
|
'notification_contact',
|
|
'notification_information',
|
|
'notification_command',
|
|
'host',
|
|
'service'
|
|
);
|
|
}
|
|
|
|
public function getSortRules()
|
|
{
|
|
return array(
|
|
'notification_start_time' => array(
|
|
'order' => self::SORT_DESC
|
|
)
|
|
);
|
|
}
|
|
}
|