diff --git a/api/chalicelib/core/health.py b/api/chalicelib/core/health.py index e8bf8f909..44bc6816a 100644 --- a/api/chalicelib/core/health.py +++ b/api/chalicelib/core/health.py @@ -170,8 +170,11 @@ def __get_sessions_stats(*_): cur.execute(query) row = cur.fetchone() return { - "numberOfSessionsCaptured": row["s_c"], - "numberOfEventCaptured": row["e_c"] + "health": True, + "details": { + "numberOfSessionsCaptured": row["s_c"], + "numberOfEventCaptured": row["e_c"] + } } diff --git a/ee/api/chalicelib/core/health.py b/ee/api/chalicelib/core/health.py index cbb8dcc0d..d1120e19b 100644 --- a/ee/api/chalicelib/core/health.py +++ b/ee/api/chalicelib/core/health.py @@ -174,8 +174,11 @@ def __get_sessions_stats(tenant_id, *_): cur.execute(query) row = cur.fetchone() return { - "numberOfSessionsCaptured": row["s_c"], - "numberOfEventCaptured": row["e_c"] + "health": True, + "details": { + "numberOfSessionsCaptured": row["s_c"], + "numberOfEventCaptured": row["e_c"] + } }