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

Method AcknowledgementClearedHandler

lib/icingadb/icingadb-objects.cpp:3077–3089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3075}
3076
3077void IcingaDB::AcknowledgementClearedHandler(const Checkable::Ptr& checkable, const String& removedBy, double changeTime)
3078{
3079 auto rws (ConfigType::GetObjectsByType<IcingaDB>());
3080
3081 if (!rws.empty()) {
3082 auto rb (Shared<String>::Make(removedBy));
3083 auto ackLastChange (checkable->GetAcknowledgementLastChange());
3084
3085 for (auto& rw : rws) {
3086 rw->SendAcknowledgementCleared(checkable, *rb, changeTime, ackLastChange);
3087 }
3088 }
3089}
3090
3091void IcingaDB::NotificationUsersChangedHandler(const Notification::Ptr& notification, const Array::Ptr& oldValues, const Array::Ptr& newValues) {
3092 for (const IcingaDB::Ptr& rw : ConfigType::GetObjectsByType<IcingaDB>()) {

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected