mirror of https://github.com/Icinga/icinga2.git
21 lines
448 B
C++
21 lines
448 B
C++
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
|
|
|
#include "icinga/eventcommand.hpp"
|
|
#include "icinga/eventcommand-ti.cpp"
|
|
|
|
using namespace icinga;
|
|
|
|
REGISTER_TYPE(EventCommand);
|
|
|
|
thread_local EventCommand::Ptr EventCommand::ExecuteOverride;
|
|
|
|
void EventCommand::Execute(const Checkable::Ptr& checkable,
|
|
const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros)
|
|
{
|
|
GetExecute()->Invoke({
|
|
checkable,
|
|
resolvedMacros,
|
|
useResolvedMacros
|
|
});
|
|
}
|