serac/cas — comment on commit 30e2882469647e5e6cb44e1f33f574b8c8dcf5bd
File:  line 0
By serac:

I sincerely appreciate the code review. To answer your question, I plan to provide exactly 1 implementation that leverages the monitors, an HTTP health check. It will be a simple controller that needs a HealthCheckMonitor that is wired up with an arbitrary number of subordinate monitors. The controller will provide for the following:

- Setting response code based on Status#getCode() of the HealthCheckMonitor#observe() call.
- Set custom X-Monitor-NAME: CODE headers to facilitate parsing by monitoring frameworks that might care about the actual details.
- Displaying the name, description, and result of all evaluated checks as a text/plain response.

CAS needs a robust health check URL that works out of the box, and this will satisfy that need. We have a need for this specifically in our environment. Beyond that I'm hopeful others will build on the framework for other use cases like those you mentioned.