spec
spec copied to clipboard
specify the schema of health scope output
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"}}
- the output must give the health state of the instance
- the output must include health details of component
/cc @hongchaodeng
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.
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 Yes.