Why do HealthCheck responses include the name?

12 views
Skip to first unread message

John D. Ament

unread,
Aug 19, 2017, 9:35:30 AM8/19/17
to Eclipse MicroProfile
I find it confusing that the response object within a HealthCheck is what declares the name.  This seems counter intuitive, the name should be constant, the status should be the variable part.

This means as a developer I can do this:

if(isUp()) {
   
return Response.named("my service is up").up();
else {
   
return Response.named("my service is down").down();
}


Which I don't think is the intended usage.
Reply all
Reply to author
Forward
0 new messages