]> granicus.if.org Git - icinga2/commitdiff
API: Fix missing attributes for DowntimeTriggered event
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 17 Aug 2016 14:57:22 +0000 (16:57 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 17 Aug 2016 14:57:22 +0000 (16:57 +0200)
fixes #12464

lib/icinga/apievents.cpp

index d04032c7c5e6212ba55477b0b5fe72119c5983db..baa624087da83a32242f4054aee308bc316f1f04 100644 (file)
@@ -336,7 +336,7 @@ void ApiEvents::DowntimeTriggeredHandler(const Downtime::Ptr& downtime)
        result->Set("type", "DowntimeTriggered");
        result->Set("timestamp", Utility::GetTime());
 
-       result->Set("downtime", Serialize(downtime));
+       result->Set("downtime", Serialize(downtime, FAConfig | FAState));
 
        BOOST_FOREACH(const EventQueue::Ptr& queue, queues) {
                queue->ProcessEvent(result);