MCPcopy Create free account
hub / github.com/Icinga/icinga2 / AcknowledgeProblem

Method AcknowledgeProblem

lib/icinga/checkable.cpp:194–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void Checkable::AcknowledgeProblem(const String& author, const String& comment, AcknowledgementType type, bool notify, bool persistent, double changeTime, double expiry, const MessageOrigin::Ptr& origin)
195{
196 SetAcknowledgementRaw(type);
197 SetAcknowledgementExpiry(expiry);
198
199 if (notify && !IsPaused())
200 OnNotificationsRequested(this, NotificationAcknowledgement, GetLastCheckResult(), author, comment, nullptr);
201
202 Log(LogInformation, "Checkable")
203 << "Acknowledgement set for checkable '" << GetName() << "'.";
204
205 OnAcknowledgementSet(this, author, comment, type, notify, persistent, changeTime, expiry, origin);
206
207 SetAcknowledgementLastChange(changeTime);
208}
209
210void Checkable::ClearAcknowledgement(const String& removedBy, double changeTime, const MessageOrigin::Ptr& origin)
211{

Calls 1

LogClass · 0.85

Tested by

no test coverage detected