From 2e6be7440332eef2a7ba8c009992aaf394625711 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 14 Jul 2022 20:50:02 -0400 Subject: [PATCH] change health check endpoint response to match other services --- tts/vocodes_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tts/vocodes_server.py b/tts/vocodes_server.py index 1148caa..d6bd403 100755 --- a/tts/vocodes_server.py +++ b/tts/vocodes_server.py @@ -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):