]> granicus.if.org Git - icinga2/blob - lib/icinga/checkcommand.hpp
Correct current_concurrent_checks to actually running checks
[icinga2] / lib / icinga / checkcommand.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef CHECKCOMMAND_H
4 #define CHECKCOMMAND_H
5
6 #include "icinga/checkcommand-ti.hpp"
7 #include "icinga/checkable.hpp"
8
9 namespace icinga
10 {
11
12 /**
13  * A command.
14  *
15  * @ingroup icinga
16  */
17 class CheckCommand final : public ObjectImpl<CheckCommand>
18 {
19 public:
20         DECLARE_OBJECT(CheckCommand);
21         DECLARE_OBJECTNAME(CheckCommand);
22
23         virtual void Execute(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr,
24                 const Dictionary::Ptr& resolvedMacros = nullptr,
25                 bool useResolvedMacros = false);
26 };
27
28 }
29
30 #endif /* CHECKCOMMAND_H */