Add host/service state sync to acknowledgement

This commit is contained in:
Noah Hilverling 2018-11-26 15:03:11 +01:00 committed by Michael Friedrich
parent 916bfd20fb
commit 328adf1fc4
2 changed files with 4 additions and 1 deletions

View File

@ -685,8 +685,10 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable)
}
}
}
if (AckComment != nullptr) {
attrs->Set("acknowledgement_comment_id", GetObjectIdentifier(AckComment));
}
}
attrs->Set("in_downtime", checkable->IsInDowntime());

View File

@ -338,6 +338,7 @@ void RedisWriter::SendEvent(const Dictionary::Ptr& event)
if (c->GetEntryTime() > entry) {
entry = c->GetEntryTime();
AckComment = c;
StateChangeHandler(checkable);
}
}
}