2013-09-24 15:26:10 +02:00
|
|
|
<?php
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
class Downtime extends DataView
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Retrieve columns provided by this view
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
2013-10-19 17:24:28 +02:00
|
|
|
'host',
|
2013-10-20 16:08:01 +02:00
|
|
|
'host_name',
|
2013-10-19 17:24:28 +02:00
|
|
|
'service',
|
2013-10-20 16:08:01 +02:00
|
|
|
'service_description',
|
2013-10-19 17:24:28 +02:00
|
|
|
'downtime_author',
|
|
|
|
'downtime_comment',
|
|
|
|
'downtime_entry_time',
|
2013-09-24 15:26:10 +02:00
|
|
|
'downtime_is_fixed',
|
2013-10-19 17:24:28 +02:00
|
|
|
'downtime_is_flexible',
|
|
|
|
'downtime_start',
|
|
|
|
'downtime_end',
|
2013-09-24 15:26:10 +02:00
|
|
|
'downtime_duration',
|
|
|
|
'downtime_is_in_effect',
|
|
|
|
'downtime_triggered_by_id',
|
|
|
|
'downtime_internal_downtime_id'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'downtime_is_in_effect' => array(
|
|
|
|
'order' => self::SORT_DESC
|
|
|
|
),
|
2013-10-19 17:24:28 +02:00
|
|
|
'downtime_start' => array(
|
2013-09-24 15:26:10 +02:00
|
|
|
'order' => self::SORT_DESC
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|