icinga2/lib/icinga/notificationcommand.hpp

37 lines
856 B
C++
Raw Permalink Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef NOTIFICATIONCOMMAND_H
#define NOTIFICATIONCOMMAND_H
2018-01-18 07:50:38 -05:00
#include "icinga/notificationcommand-ti.hpp"
2014-05-25 10:23:35 -04:00
#include "icinga/notification.hpp"
namespace icinga
{
class Notification;
/**
* A notification command.
*
2013-08-20 02:29:38 -04:00
* @ingroup icinga
*/
2018-01-04 00:11:04 -05:00
class NotificationCommand final : public ObjectImpl<NotificationCommand>
{
public:
2014-11-02 18:44:04 -05:00
DECLARE_OBJECT(NotificationCommand);
DECLARE_OBJECTNAME(NotificationCommand);
static thread_local NotificationCommand::Ptr ExecuteOverride;
virtual Dictionary::Ptr Execute(const intrusive_ptr<Notification>& notification,
const User::Ptr& user, const CheckResult::Ptr& cr, const NotificationType& type,
const String& author, const String& comment,
const Dictionary::Ptr& resolvedMacros = nullptr,
bool useResolvedMacros = false);
};
}
#endif /* NOTIFICATIONCOMMAND_H */