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

Method NotificationSentToAllUsersHandler

lib/icingadb/icingadb-objects.cpp:2981–2994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2979}
2980
2981void IcingaDB::NotificationSentToAllUsersHandler(
2982 const Notification::Ptr& notification, const Checkable::Ptr& checkable, const std::set<User::Ptr>& users,
2983 NotificationType type, const CheckResult::Ptr& cr, const String& author, const String& text
2984)
2985{
2986 auto rws (ConfigType::GetObjectsByType<IcingaDB>());
2987 auto sendTime (notification->GetLastNotification());
2988
2989 if (!rws.empty()) {
2990 for (auto& rw : rws) {
2991 rw->SendSentNotification(notification, checkable, users, type, cr, author, text, sendTime);
2992 }
2993 }
2994}
2995
2996void IcingaDB::CommentAddedHandler(const Comment::Ptr& comment)
2997{

Callers

nothing calls this directly

Calls 3

GetLastNotificationMethod · 0.80
SendSentNotificationMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected