icinga2/lib/icinga/checkcommand.hpp

34 lines
653 B
C++
Raw Permalink Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef CHECKCOMMAND_H
#define CHECKCOMMAND_H
2018-01-18 07:50:38 -05:00
#include "icinga/checkcommand-ti.hpp"
2014-05-25 10:23:35 -04:00
#include "icinga/checkable.hpp"
namespace icinga
{
/**
* A command.
*
2013-08-20 02:29:38 -04:00
* @ingroup icinga
*/
2018-01-04 00:11:04 -05:00
class CheckCommand final : public ObjectImpl<CheckCommand>
{
public:
2014-11-02 18:44:04 -05:00
DECLARE_OBJECT(CheckCommand);
DECLARE_OBJECTNAME(CheckCommand);
static thread_local CheckCommand::Ptr ExecuteOverride;
void Execute(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr,
const WaitGroup::Ptr& producer,
const Dictionary::Ptr& resolvedMacros = nullptr,
bool useResolvedMacros = false);
};
}
#endif /* CHECKCOMMAND_H */