]> granicus.if.org Git - icinga2/blob - lib/icinga/eventcommand.hpp
Service: be handled while host is down
[icinga2] / lib / icinga / eventcommand.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef EVENTCOMMAND_H
4 #define EVENTCOMMAND_H
5
6 #include "icinga/eventcommand-ti.hpp"
7 #include "icinga/checkable.hpp"
8
9 namespace icinga
10 {
11
12 /**
13  * An event handler command.
14  *
15  * @ingroup icinga
16  */
17 class EventCommand final : public ObjectImpl<EventCommand>
18 {
19 public:
20         DECLARE_OBJECT(EventCommand);
21         DECLARE_OBJECTNAME(EventCommand);
22
23         virtual void Execute(const Checkable::Ptr& checkable,
24                 const Dictionary::Ptr& resolvedMacros = nullptr,
25                 bool useResolvedMacros = false);
26 };
27
28 }
29
30 #endif /* EVENTCOMMAND_H */