Open davidkarlsen opened 6 years ago
@davidkarlsen Below is the link where you can find how to invoke TTL type check to set the status of the check to passing https://www.consul.io/api/agent/check.html#ttl-check-pass In the consul api code there is a class AgentConsulClient in which you have agentCheckPass method which will invoke api endpoint to keep check to be healthy
@Override
public Response
RawResponse rawResponse = rawClient.makePutRequest("/v1/agent/check/pass/" + checkId, "", noteParameter, tokenParameter);
if (rawResponse.getStatusCode() == 200) {
return new Response<Void>(null, rawResponse);
} else {
throw new OperationException(rawResponse);
}
}
I can't find too much docs on the TTL check. It seems the API will only register the check - but not actually invoke the endpoint to keep it healthy? Maybe you could tell a bit more in the docs?