spec icon indicating copy to clipboard operation
spec copied to clipboard

specify the schema of health scope output

Open wonderflow opened this issue 5 years ago • 3 comments

Now we have defined the spec of health scope, but I can't find the output of health spec. Do we need to specify the schema of health scope output? Because we hope other trait can use the health scope output to make decision.

Maybe we can make the output something like this:

{"state":"unhealthy/healthy/bad","components":{"comp1":"healthy","comp2":"unhealthy"}}
  1. the output must give the health state of the instance
  2. the output must include health details of component

/cc @hongchaodeng

wonderflow avatar Sep 17 '19 03:09 wonderflow

I totally agree. I think the status should go in the instance of app-scope which is under development in https://github.com/microsoft/hydra-spec/pull/147.

hongchaodeng avatar Sep 17 '19 03:09 hongchaodeng

When you say output you mean when a user or other part of Hydra queries the health scope, we agree on a common output?

suhuruli avatar Sep 17 '19 16:09 suhuruli

@suhuruli Yes.

hongchaodeng avatar Sep 17 '19 18:09 hongchaodeng