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/notificationcommand.hpp"
|
2018-01-18 13:50:38 +01:00
|
|
|
#include "icinga/notificationcommand-ti.cpp"
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
|
|
REGISTER_TYPE(NotificationCommand);
|
|
|
|
|
2020-07-31 17:28:33 +02:00
|
|
|
thread_local NotificationCommand::Ptr NotificationCommand::ExecuteOverride;
|
|
|
|
|
2013-06-13 11:33:00 +02:00
|
|
|
Dictionary::Ptr NotificationCommand::Execute(const Notification::Ptr& notification,
|
2020-01-07 14:21:06 +01:00
|
|
|
const User::Ptr& user, const CheckResult::Ptr& cr, const NotificationType& type,
|
|
|
|
const String& author, const String& comment, const Dictionary::Ptr& resolvedMacros,
|
|
|
|
bool useResolvedMacros)
|
2013-06-13 11:33:00 +02:00
|
|
|
{
|
2017-11-30 08:19:58 +01:00
|
|
|
return GetExecute()->Invoke({
|
2017-12-19 15:50:05 +01:00
|
|
|
notification,
|
|
|
|
user,
|
|
|
|
cr,
|
|
|
|
type,
|
|
|
|
author,
|
|
|
|
comment,
|
|
|
|
resolvedMacros,
|
|
|
|
useResolvedMacros,
|
2017-11-30 08:19:58 +01:00
|
|
|
});
|
2013-06-13 11:33:00 +02:00
|
|
|
}
|