2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-06-13 11:33:00 +02:00
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "icinga/eventcommand.hpp"
|
2018-01-18 13:50:38 +01:00
|
|
|
#include "icinga/eventcommand-ti.cpp"
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
|
|
REGISTER_TYPE(EventCommand);
|
|
|
|
|
2014-11-13 11:23:57 +01:00
|
|
|
void EventCommand::Execute(const Checkable::Ptr& checkable,
|
2017-12-19 15:50:05 +01:00
|
|
|
const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros)
|
2013-06-13 11:33:00 +02:00
|
|
|
{
|
2017-11-30 08:19:58 +01:00
|
|
|
GetExecute()->Invoke({
|
2017-12-19 15:50:05 +01:00
|
|
|
checkable,
|
|
|
|
resolvedMacros,
|
|
|
|
useResolvedMacros
|
2017-11-30 08:19:58 +01:00
|
|
|
});
|
2013-06-13 11:33:00 +02:00
|
|
|
}
|