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

Method GetCheckableNotificationNotificationNumber

lib/icinga/compatutility.cpp:159–168  ·  view source on GitHub ↗

Used in DB IDO and Livestatus. */

Source from the content-addressed store, hash-verified

157
158/* Used in DB IDO and Livestatus. */
159int CompatUtility::GetCheckableNotificationNotificationNumber(const Checkable::Ptr& checkable)
160{
161 int notification_number = 0;
162 for (const Notification::Ptr& notification : checkable->GetNotifications()) {
163 if (notification->GetNotificationNumber() > notification_number)
164 notification_number = notification->GetNotificationNumber();
165 }
166
167 return notification_number;
168}
169
170/* Used in DB IDO and Livestatus. */
171double CompatUtility::GetCheckableNotificationNotificationInterval(const Checkable::Ptr& checkable)

Callers

nothing calls this directly

Calls 1

GetNotificationsMethod · 0.45

Tested by

no test coverage detected