2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-02-07 14:03:53 +01:00
|
|
|
|
|
|
|
#ifndef CLUSTERCHECKTASK_H
|
|
|
|
#define CLUSTERCHECKTASK_H
|
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "icinga/service.hpp"
|
2014-02-07 14:03:53 +01:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cluster check type.
|
|
|
|
*
|
|
|
|
* @ingroup methods
|
|
|
|
*/
|
2014-02-12 09:33:04 +01:00
|
|
|
class ClusterCheckTask
|
2014-02-07 14:03:53 +01:00
|
|
|
{
|
|
|
|
public:
|
2014-11-13 11:23:57 +01:00
|
|
|
static void ScriptFunc(const Checkable::Ptr& service, const CheckResult::Ptr& cr,
|
2017-12-19 15:50:05 +01:00
|
|
|
const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros);
|
2014-02-07 14:03:53 +01:00
|
|
|
|
|
|
|
private:
|
2018-01-04 04:25:35 +01:00
|
|
|
ClusterCheckTask();
|
2014-08-17 17:57:20 +02:00
|
|
|
static String FormatArray(const Array::Ptr& arr);
|
2014-02-07 14:03:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CLUSTERCHECKTASK_H */
|