17 #ifndef __HEALTH_CHECKER_HPP__
18 #define __HEALTH_CHECKER_HPP__
69 const HealthCheck& healthCheck,
70 const std::string& launcherDir,
71 const lambda::function<
void(
const TaskHealthStatus&)>& callback,
99 const HealthCheck& healthCheck,
100 const std::string& launcherDir,
101 const lambda::function<
void(
const TaskHealthStatus&)>& callback,
102 const TaskID& taskId,
103 const ContainerID& taskContainerId,
115 const HealthCheck& _healthCheck,
116 const TaskID& _taskId,
117 const lambda::function<
void(
const TaskHealthStatus&)>& _callback,
118 const std::string& launcherDir,
120 const std::vector<std::string>& namespaces,
124 bool commandCheckViaAgent);
130 const HealthCheck healthCheck;
131 const lambda::function<void(const TaskHealthStatus&)> callback;
132 const std::string name;
137 uint32_t consecutiveFailures;
144 namespace validation {
157 #endif // __HEALTH_CHECKER_HPP__
Definition: duration.hpp:32
Option< Error > healthCheck(const HealthCheck &check)
std::set< std::string > namespaces()
static Try< process::Owned< HealthChecker > > create(const HealthCheck &healthCheck, const std::string &launcherDir, const lambda::function< void(const TaskHealthStatus &)> &callback, const TaskID &taskId, const Option< pid_t > &taskPid, const std::vector< std::string > &namespaces)
Attempts to create a HealthChecker object.
Definition: health_checker.hpp:41