mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
State|StateHistory: Use placholder for scheduling_source
This commit is contained in:
parent
03ea5ed9b3
commit
3cb6082d2b
2 changed files with 8 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ use Icinga\Module\Icingadb\Model\Behavior\Timestamp;
|
|||
use Icinga\Module\Icingadb\Model\Behavior\VolatileState;
|
||||
use ipl\Orm\Behaviors;
|
||||
use ipl\Orm\Model;
|
||||
use ipl\Sql\Expression;
|
||||
|
||||
/**
|
||||
* Base class for the {@link HostState} and {@link ServiceState} models providing common columns.
|
||||
|
|
@ -42,7 +43,9 @@ abstract class State extends Model
|
|||
'latency',
|
||||
'timeout',
|
||||
'check_source',
|
||||
'scheduling_source',
|
||||
'scheduling_source' => new Expression( // TODO: Do as told
|
||||
"'remove me if https://github.com/Icinga/icingadb/issues/160 is done'"
|
||||
),
|
||||
'last_update',
|
||||
'last_state_change',
|
||||
'next_check',
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ use Icinga\Module\Icingadb\Model\Behavior\Timestamp;
|
|||
use ipl\Orm\Behaviors;
|
||||
use ipl\Orm\Model;
|
||||
use ipl\Orm\Relations;
|
||||
use ipl\Sql\Expression;
|
||||
|
||||
/**
|
||||
* Model for table `state_history`
|
||||
|
|
@ -46,7 +47,9 @@ class StateHistory extends Model
|
|||
'long_output',
|
||||
'max_check_attempts',
|
||||
'check_source',
|
||||
'scheduling_source'
|
||||
'scheduling_source' => new Expression( // TODO: Do as told
|
||||
"'remove me if https://github.com/Icinga/icingadb/issues/160 is done'"
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue