qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java
public Map<String, HealthCheck> getChecks() {

        final URI uri = createURI("/checks");

        final HTTP.Response response = HTTP.getResponse(uri.toString());

        final JsonParserAndMapper jsonParserAndMapper = new JsonParserFactory().create();
        if (response.status() == 200) {
            final Map<String, Object> map = jsonParserAndMapper.parseMap(response.payloadAsString());
            final Map<String, HealthCheck> returnMap = new HashMap<>(map.size());
            map.entrySet().forEach(entry -> {
                @SuppressWarnings("unchecked") HealthCheck healthCheck = fromMap((Map<String, Object>) entry.getValue(), HealthCheck.class);
                returnMap.put(entry.getKey(), healthCheck);

            });
            return returnMap;
        }
        die("Unable to get health checks", uri, response.status(), response.statusMessageAsString(),
                response.payloadAsString());
        return null;
    }
public Map<String, HealthCheck> getChecks() {

        final URI uri = createURI("/checks");

        final HTTP.Response response = HTTP.getResponse(uri.toString());

        final JsonParserAndMapper jsonParserAndMapper = new JsonParserFactory().create();
        if (response.status() == 200) {
            final Map<String, Object> map = jsonParserAndMapper.parseMap(response.payloadAsString());
            final Map<String, HealthCheck> returnMap = new HashMap<>(map.size());
            map.entrySet().forEach(entry -> {
                @SuppressWarnings("unchecked") HealthCheck healthCheck = fromMap((Map<String, Object>) entry.getValue(), HealthCheck.class);
                returnMap.put(entry.getKey(), healthCheck);

            });
            return returnMap;
        }
        die("Unable to get health checks", uri, response.status(), response.statusMessageAsString(),
                response.payloadAsString());
        return null;
    }
Retrieves all checks registered with the Agent.
<p>
GET /v1/agent/checks

@return Map of Check ID to Checks.