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

Method GetCheckableNotificationNextNotification

lib/icinga/compatutility.cpp:147–156  ·  view source on GitHub ↗

Used in DB IDO and Livestatus. */

Source from the content-addressed store, hash-verified

145
146/* Used in DB IDO and Livestatus. */
147int CompatUtility::GetCheckableNotificationNextNotification(const Checkable::Ptr& checkable)
148{
149 double next_notification = 0.0;
150 for (const Notification::Ptr& notification : checkable->GetNotifications()) {
151 if (next_notification == 0 || notification->GetNextNotification() < next_notification)
152 next_notification = notification->GetNextNotification();
153 }
154
155 return static_cast<int>(next_notification);
156}
157
158/* Used in DB IDO and Livestatus. */
159int CompatUtility::GetCheckableNotificationNotificationNumber(const Checkable::Ptr& checkable)

Callers

nothing calls this directly

Calls 1

GetNotificationsMethod · 0.45

Tested by

no test coverage detected