IcingaDB::SerializeState(): include whether an ack is sticky

This commit is contained in:
Alexander A. Klimov 2020-04-20 14:53:55 +02:00
parent 2e22ceb23e
commit 35f25e99b4
1 changed files with 1 additions and 1 deletions

View File

@ -1877,7 +1877,7 @@ Dictionary::Ptr IcingaDB::SerializeState(const Checkable::Ptr& checkable)
attrs->Set("is_reachable", checkable->IsReachable()); attrs->Set("is_reachable", checkable->IsReachable());
attrs->Set("is_flapping", checkable->IsFlapping()); attrs->Set("is_flapping", checkable->IsFlapping());
attrs->Set("is_acknowledged", checkable->IsAcknowledged()); attrs->Set("acknowledgement", checkable->GetAcknowledgement());
if (checkable->IsAcknowledged()) { if (checkable->IsAcknowledged()) {
Timestamp entry = 0; Timestamp entry = 0;
Comment::Ptr AckComment; Comment::Ptr AckComment;