mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
IcingaDB: Make is_acknowledged
a bool & add is_sticky_acknowledgement
field
This commit is contained in:
parent
76d5915b3f
commit
fd1927115a
@ -3018,7 +3018,9 @@ 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->GetAcknowledgement());
|
attrs->Set("is_acknowledged", checkable->IsAcknowledged());
|
||||||
|
attrs->Set("is_sticky_acknowledgement", checkable->GetAcknowledgement() == AcknowledgementSticky);
|
||||||
|
|
||||||
if (checkable->IsAcknowledged()) {
|
if (checkable->IsAcknowledged()) {
|
||||||
Timestamp entry = 0;
|
Timestamp entry = 0;
|
||||||
Comment::Ptr AckComment;
|
Comment::Ptr AckComment;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user