diff --git a/lib/icinga/checkable-notification.cpp b/lib/icinga/checkable-notification.cpp index 8dc0dfd58..714df755c 100644 --- a/lib/icinga/checkable-notification.cpp +++ b/lib/icinga/checkable-notification.cpp @@ -74,7 +74,7 @@ void Checkable::SendNotifications(NotificationType type, const CheckResult::Ptr& << "Notification '" << notification->GetName() << "': there are some stashed notifications. Stashing notification to preserve order."; stashedNotifications->Add(new Dictionary({ - {"type", type}, + {"notification_type", type}, {"cr", cr}, {"force", force}, {"reminder", false}, @@ -99,7 +99,7 @@ void Checkable::SendNotifications(NotificationType type, const CheckResult::Ptr& << "Notification '" << notification->GetName() << "': object authority hasn't been updated, yet. Stashing notification."; notification->GetStashedNotifications()->Add(new Dictionary({ - {"type", type}, + {"notification_type", type}, {"cr", cr}, {"force", force}, {"reminder", false}, diff --git a/lib/notification/notificationcomponent.cpp b/lib/notification/notificationcomponent.cpp index 3bc4b5a63..7db9919aa 100644 --- a/lib/notification/notificationcomponent.cpp +++ b/lib/notification/notificationcomponent.cpp @@ -186,7 +186,7 @@ void NotificationComponent::NotificationTimerHandler() << "Attempting to send stashed notification '" << notificationName << "'."; notification->BeginExecuteNotification( - (NotificationType)(int)unstashedNotification->Get("type"), + (NotificationType)(int)unstashedNotification->Get("notification_type"), (CheckResult::Ptr)unstashedNotification->Get("cr"), (bool)unstashedNotification->Get("force"), (bool)unstashedNotification->Get("reminder"),