change health check endpoint response to match other services

This commit is contained in:
Brandon Thomas
2022-07-14 20:50:02 -04:00
parent 4524389ced
commit 2e6be74403
+4 -1
View File
@@ -210,7 +210,10 @@ class StatusHandler():
def on_get(self, request, response):
LOGGER.info("/_status endpoint requested.")
response.content_type = 'application/json'
response.body = '{"status": "ok"}'
# FakeYou / Storyteller universal health checking semantics:
# success (bool) - calling the endpoint worked (no middle man proxy, etc.)
# is_healthy (bool) - dependencies are ok
response.body = '{"success": true, "is_healthy": true}'
class ApiHandler():
def on_post(self, request, response):