Merge pull request #9213 from Icinga/feature/icingadb-add-previous_soft_state-to-host_state-and-service_state-9210

IcingaDB: Add previous_soft_state to host_state and service_state
This commit is contained in:
Julian Brost 2022-02-18 14:09:35 +01:00 committed by GitHub
commit 99008755b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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