icinga2/lib/methods/plugineventtask.hpp

34 lines
646 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef PLUGINEVENTTASK_H
#define PLUGINEVENTTASK_H
2014-05-25 16:23:35 +02:00
#include "methods/i2-methods.hpp"
#include "icinga/service.hpp"
#include "base/process.hpp"
namespace icinga
{
/**
* Implements event handlers based on external plugins.
*
* @ingroup methods
*/
2017-12-31 07:22:16 +01:00
class PluginEventTask
{
public:
static void ScriptFunc(const Checkable::Ptr& service,
const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros);
private:
PluginEventTask();
static void ProcessFinishedHandler(const Checkable::Ptr& checkable,
const Value& commandLine, const ProcessResult& pr);
};
}
#endif /* PLUGINEVENTTASK_H */