mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-02-11 14:53:11 -05:00
Add views for every possible action, fix some bugs in the JavaScript multi selection, make selection hrefs in the list controllers unique to be able to handle the selection properly refs #3788
39 lines
869 B
PHP
39 lines
869 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'
|
|
'notification_internal_id'
|
|
);
|
|
}
|
|
|
|
public function getSortRules()
|
|
{
|
|
return array(
|
|
'notification_start_time' => array(
|
|
'order' => self::SORT_DESC
|
|
)
|
|
);
|
|
}
|
|
}
|