]> granicus.if.org Git - icinga2/commitdiff
Fix NotificationSentToAllUsers cluster event
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 16 Aug 2016 07:30:10 +0000 (09:30 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 16 Aug 2016 07:30:10 +0000 (09:30 +0200)
refs #12444

lib/icinga/clusterevents.cpp
lib/icinga/clusterevents.hpp

index b30ba73c8f61fa1719bb430cb5be9cc8dd3a9534..d14b755ddbb41e57254f3614ddb42d293bee5715 100644 (file)
@@ -50,7 +50,7 @@ REGISTER_APIFUNCTION(UpdateRepository, event, &ClusterEvents::UpdateRepositoryAP
 REGISTER_APIFUNCTION(ExecuteCommand, event, &ClusterEvents::ExecuteCommandAPIHandler);
 REGISTER_APIFUNCTION(SendNotifications, event, &ClusterEvents::SendNotificationsAPIHandler);
 REGISTER_APIFUNCTION(NotificationSentUser, event, &ClusterEvents::NotificationSentUserAPIHandler);
-REGISTER_APIFUNCTION(NotificationSentAllUsers, event, &ClusterEvents::NotificationSentAllUsersAPIHandler);
+REGISTER_APIFUNCTION(NotificationSentToAllUsers, event, &ClusterEvents::NotificationSentToAllUsersAPIHandler);
 
 static Timer::Ptr l_RepositoryTimer;
 
@@ -972,13 +972,13 @@ void ClusterEvents::NotificationSentToAllUsersHandler(const Notification::Ptr& n
 
        Dictionary::Ptr message = new Dictionary();
        message->Set("jsonrpc", "2.0");
-       message->Set("method", "event::NotificationSentAllUsers");
+       message->Set("method", "event::NotificationSentToAllUsers");
        message->Set("params", params);
 
        listener->RelayMessage(origin, ConfigObject::Ptr(), message, true);
 }
 
-Value ClusterEvents::NotificationSentAllUsersAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
+Value ClusterEvents::NotificationSentToAllUsersAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
 {
        Endpoint::Ptr endpoint = origin->FromClient->GetEndpoint();
 
index 8df2ab819055eea052705da5388da94c25c55e60..a03f0b2db37a24adfe00e50c6b1206dd769589a7 100644 (file)
@@ -77,7 +77,7 @@ public:
 
        static void NotificationSentToAllUsersHandler(const Notification::Ptr& notification, const Checkable::Ptr& checkable, const std::set<User::Ptr>& users,
            NotificationType notificationType, const CheckResult::Ptr& cr, const String& author, const String& commentText, const MessageOrigin::Ptr& origin);
-       static Value NotificationSentAllUsersAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
+       static Value NotificationSentToAllUsersAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
 };
 
 }