Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Adds HealthCheckCache for health api /v1/health/state/<state> #134

Merged
merged 2 commits into from
May 31, 2016

Conversation

laissandrade
Copy link
Contributor

The HealthClient has a api with support for blocking requests that enables us to filter health checks by state. Using ConsulCache it is possible to offer the listener functionality for that api as well.

This pull request adds an asynchronous implementation of HealthClient#getChecksByState, and an implementation of ConsulCache called HealthCheckCache, that maps HealthCheck by its check id.

We are using this internally already in out stack, hope its all good for you to merge it.

Let me know if there are any issues or something missing that I can fix.
Thanks!

@rickfast
Copy link
Owner

Thanks!

@rickfast rickfast merged commit 170bbaf into rickfast:master May 31, 2016
@rickfast
Copy link
Owner

I will release today

@gjesse
Copy link
Contributor

gjesse commented May 31, 2016

nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants