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

Method Stop

lib/icinga/notification.cpp:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void Notification::Stop(bool runtimeRemoved)
147{
148 ObjectImpl<Notification>::Stop(runtimeRemoved);
149
150 Checkable::Ptr obj = GetCheckable();
151
152 if (obj)
153 obj->UnregisterNotification(this);
154
155 for (const UserGroup::Ptr& group : GetUserGroups())
156 group->RemoveNotification(this);
157}
158
159Checkable::Ptr Notification::GetCheckable() const
160{

Callers

nothing calls this directly

Calls 2

RemoveNotificationMethod · 0.80

Tested by

no test coverage detected