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

Method FireSuppressedNotificationsTimer

lib/icinga/checkable-notification.cpp:245–254  ·  view source on GitHub ↗

* Re-sends all notifications previously suppressed by e.g. downtimes if the notification reason still applies. */

Source from the content-addressed store, hash-verified

243 * Re-sends all notifications previously suppressed by e.g. downtimes if the notification reason still applies.
244 */
245void Checkable::FireSuppressedNotificationsTimer(const Timer * const&)
246{
247 for (auto& host : ConfigType::GetObjectsByType<Host>()) {
248 host->FireSuppressedNotifications();
249 }
250
251 for (auto& service : ConfigType::GetObjectsByType<Service>()) {
252 service->FireSuppressedNotifications();
253 }
254}
255
256/**
257 * Returns whether sending a notification of type type right now would represent *this' current state correctly.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected