Used in DB IDO and Livestatus. */
| 157 | |
| 158 | /* Used in DB IDO and Livestatus. */ |
| 159 | int 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. */ |
| 171 | double CompatUtility::GetCheckableNotificationNotificationInterval(const Checkable::Ptr& checkable) |
nothing calls this directly
no test coverage detected