1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef NOTIFICATIONCOMMAND_H
4 #define NOTIFICATIONCOMMAND_H
6 #include "icinga/notificationcommand-ti.hpp"
7 #include "icinga/notification.hpp"
15 * A notification command.
19 class NotificationCommand final : public ObjectImpl<NotificationCommand>
22 DECLARE_OBJECT(NotificationCommand);
23 DECLARE_OBJECTNAME(NotificationCommand);
25 virtual Dictionary::Ptr Execute(const intrusive_ptr<Notification>& notification,
26 const User::Ptr& user, const CheckResult::Ptr& cr, const NotificationResult::Ptr& nr,
27 const NotificationType& type, const String& author, const String& comment,
28 const Dictionary::Ptr& resolvedMacros = nullptr,
29 bool useResolvedMacros = false);
34 #endif /* NOTIFICATIONCOMMAND_H */