icinga2/lib/icinga/checkcommand.cpp

23 lines
513 B
C++
Raw Permalink Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2014-05-25 16:23:35 +02:00
#include "icinga/checkcommand.hpp"
2018-01-18 13:50:38 +01:00
#include "icinga/checkcommand-ti.cpp"
#include "base/configtype.hpp"
using namespace icinga;
REGISTER_TYPE(CheckCommand);
thread_local CheckCommand::Ptr CheckCommand::ExecuteOverride;
void CheckCommand::Execute(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr,
const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros)
{
GetExecute()->Invoke({
checkable,
cr,
resolvedMacros,
useResolvedMacros
});
}