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

Method GetCheckableNotificationStateFilter

lib/icinga/compatutility.cpp:201–212  ·  view source on GitHub ↗

Helper. */

Source from the content-addressed store, hash-verified

199
200/* Helper. */
201int CompatUtility::GetCheckableNotificationStateFilter(const Checkable::Ptr& checkable)
202{
203 unsigned long notification_state_filter = 0;
204
205 for (const Notification::Ptr& notification : checkable->GetNotifications()) {
206 ObjectLock olock(notification);
207
208 notification_state_filter |= notification->GetStateFilter();
209 }
210
211 return notification_state_filter;
212}
213
214/* Used in DB IDO and Livestatus. */
215std::set<User::Ptr> CompatUtility::GetCheckableNotificationUsers(const Checkable::Ptr& checkable)

Callers

nothing calls this directly

Calls 1

GetNotificationsMethod · 0.45

Tested by

no test coverage detected