]> granicus.if.org Git - icinga2/blob - lib/methods/plugineventtask.hpp
Merge pull request #7527 from Icinga/bugfix/checkable-command-endpoint-zone
[icinga2] / lib / methods / plugineventtask.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef PLUGINEVENTTASK_H
4 #define PLUGINEVENTTASK_H
5
6 #include "methods/i2-methods.hpp"
7 #include "icinga/service.hpp"
8 #include "base/process.hpp"
9
10 namespace icinga
11 {
12
13 /**
14  * Implements event handlers based on external plugins.
15  *
16  * @ingroup methods
17  */
18 class PluginEventTask
19 {
20 public:
21         static void ScriptFunc(const Checkable::Ptr& service,
22                 const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros);
23
24 private:
25         PluginEventTask();
26
27         static void ProcessFinishedHandler(const Checkable::Ptr& checkable,
28                 const Value& commandLine, const ProcessResult& pr);
29 };
30
31 }
32
33 #endif /* PLUGINEVENTTASK_H */