2013-06-27 10:14:41 +02:00
|
|
|
<?php
|
|
|
|
|
2013-07-15 12:16:14 +02:00
|
|
|
namespace Monitoring\View;
|
2013-06-27 10:14:41 +02:00
|
|
|
|
|
|
|
class EventHistoryView extends MonitoringView
|
|
|
|
{
|
|
|
|
protected $query;
|
|
|
|
|
|
|
|
protected $availableColumns = array(
|
|
|
|
'raw_timestamp',
|
|
|
|
'timestamp',
|
|
|
|
'host',
|
|
|
|
'service',
|
|
|
|
'host_name',
|
|
|
|
'state',
|
|
|
|
'last_state',
|
|
|
|
'last_hard_state',
|
|
|
|
'attempt',
|
|
|
|
'max_attempts',
|
|
|
|
'output',
|
|
|
|
'type'
|
|
|
|
);
|
|
|
|
|
|
|
|
protected $specialFilters = array();
|
|
|
|
|
|
|
|
protected $sortDefaults = array(
|
|
|
|
'raw_timestamp' => array(
|
|
|
|
'default_dir' => self::SORT_DESC
|
|
|
|
),
|
|
|
|
'timestamp' => array(
|
|
|
|
'default_dir' => self::SORT_DESC
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|