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

Method Start

lib/icinga/notification.cpp:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void Notification::Start(bool runtimeCreated)
131{
132 Checkable::Ptr obj = GetCheckable();
133
134 if (obj)
135 obj->RegisterNotification(this);
136
137 if (ApiListener::IsHACluster() && GetNextNotification() < Utility::GetTime() + 60)
138 SetNextNotification(Utility::GetTime() + 60, true);
139
140 for (const UserGroup::Ptr& group : GetUserGroups())
141 group->AddNotification(this);
142
143 ObjectImpl<Notification>::Start(runtimeCreated);
144}
145
146void Notification::Stop(bool runtimeRemoved)
147{

Callers

nothing calls this directly

Calls 2

RegisterNotificationMethod · 0.80
AddNotificationMethod · 0.80

Tested by

no test coverage detected