DowntimestartQuery and DowntimeendQuery, initial commit
This commit is contained in:
parent
eef5f6ae18
commit
4330122221
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Icinga\Monitoring\Backend\Ido\Query;
|
||||||
|
|
||||||
|
class DowntimeendhistoryQuery extends AbstractQuery
|
||||||
|
{
|
||||||
|
protected $columnMap = array(
|
||||||
|
'downtimehistory' => array(
|
||||||
|
'state_time' => 'actual_end_time',
|
||||||
|
'timestamp' => 'UNIX_TIMESTAMP(actual_end_time)',
|
||||||
|
'raw_timestamp' => 'actual_end_time',
|
||||||
|
'object_id' => 'object_id',
|
||||||
|
'type' => "('dt_end')",
|
||||||
|
'state' => '(NULL)',
|
||||||
|
'state_type' => '(NULL)',
|
||||||
|
'output' => "('[' || author_name || '] ' || comment_data)",
|
||||||
|
'attempt' => '(NULL)',
|
||||||
|
'max_attempts' => '(NULL)',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Icinga\Monitoring\Backend\Ido\Query;
|
||||||
|
|
||||||
|
class DowntimestarthistoryQuery extends AbstractQuery
|
||||||
|
{
|
||||||
|
protected $columnMap = array(
|
||||||
|
'downtimehistory' => array(
|
||||||
|
'state_time' => 'actual_start_time',
|
||||||
|
'timestamp' => 'UNIX_TIMESTAMP(actual_start_time)',
|
||||||
|
'raw_timestamp' => 'actual_start_time',
|
||||||
|
'object_id' => 'object_id',
|
||||||
|
'type' => "('dt_end')",
|
||||||
|
'state' => '(NULL)',
|
||||||
|
'state_type' => '(NULL)',
|
||||||
|
'output' => "('[' || author_name || '] ' || comment_data)",
|
||||||
|
'attempt' => '(NULL)',
|
||||||
|
'max_attempts' => '(NULL)',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue