DowntimestartQuery and DowntimeendQuery, initial commit

This commit is contained in:
Thomas Gelf 2013-08-20 23:01:45 +02:00 committed by Eric Lippmann
parent eef5f6ae18
commit 4330122221
2 changed files with 44 additions and 0 deletions

View File

@ -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)',
)
);
}

View File

@ -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)',
)
);
}