You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The /parse/health endpoint only returns a single key status: 'ok' without any contextual information such as:
status may be ok, but there may be internal processes going on that are health related
status may be not ok, in which case there should be additional information returned
Feature / Enhancement Description
Currently "status" is a final state that is only related to the final result of the server start. The suggestion is to make "status" a dynamic state that can change at anytime during runtime and returns the current server health throughout the server lifecycle. This would make the status more versatile for future server health features. One could set an alarm to continuously watch the server status. For example:
@mtrezza I can suggest to add to the spec to only keep status key when master key is not provided.
If master key is provided on the health endpoint it's safe to return additional & internal status.
Or a CLP object could be introduced to allow some users to access to the status details, and avoid a master key usage.
Yes, that's a good point. I think this whole feature needs some more thought. The discussion where this originally came up has evolved so that the HTTP response code now for example also changes depending on the status.
Activity
parse-github-assistant commentedon Nov 22, 2022
Thanks for opening this issue!
Moumouls commentedon Dec 15, 2022
@mtrezza I can suggest to add to the spec to only keep
statuskey when master key is not provided.If master key is provided on the health endpoint it's safe to return additional & internal status.
Or a CLP object could be introduced to allow some users to access to the status details, and avoid a master key usage.
mtrezza commentedon Dec 16, 2022
Yes, that's a good point. I think this whole feature needs some more thought. The discussion where this originally came up has evolved so that the HTTP response code now for example also changes depending on the status.