IcingaDB: Add previous_soft_state to host_state and service_state

refs #9210
This commit is contained in:
Alexander A. Klimov 2022-02-14 11:32:15 +01:00
parent aaccd0448f
commit c613e62454
1 changed files with 1 additions and 0 deletions

View File

@ -2200,6 +2200,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());