]> granicus.if.org Git - icinga2/blob - lib/icinga/notificationcommand.hpp
Merge pull request #7527 from Icinga/bugfix/checkable-command-endpoint-zone
[icinga2] / lib / icinga / notificationcommand.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef NOTIFICATIONCOMMAND_H
4 #define NOTIFICATIONCOMMAND_H
5
6 #include "icinga/notificationcommand-ti.hpp"
7 #include "icinga/notification.hpp"
8
9 namespace icinga
10 {
11
12 class Notification;
13
14 /**
15  * A notification command.
16  *
17  * @ingroup icinga
18  */
19 class NotificationCommand final : public ObjectImpl<NotificationCommand>
20 {
21 public:
22         DECLARE_OBJECT(NotificationCommand);
23         DECLARE_OBJECTNAME(NotificationCommand);
24
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);
30 };
31
32 }
33
34 #endif /* NOTIFICATIONCOMMAND_H */