mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Merge pull request #9214 from Icinga/feature/icingadb-add-previous_soft_state-to-host_state-and-service_state-9210-213
IcingaDB: Add previous_soft_state to host_state and service_state
This commit is contained in:
commit
db84b834ca
@ -2466,6 +2466,7 @@ Dictionary::Ptr IcingaDB::SerializeState(const Checkable::Ptr& checkable)
|
||||
attrs->Set("severity", host->GetSeverity());
|
||||
}
|
||||
|
||||
attrs->Set("previous_soft_state", GetPreviousState(checkable, service, StateTypeSoft));
|
||||
attrs->Set("previous_hard_state", GetPreviousState(checkable, service, StateTypeHard));
|
||||
attrs->Set("check_attempt", checkable->GetCheckAttempt());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user