feat(chalice): changed health-check response

This commit is contained in:
Taha Yassine Kraiem 2023-04-27 17:44:52 +02:00
parent 0ca7994672
commit 99dcc7cf78
2 changed files with 10 additions and 4 deletions

View file

@ -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"]
}
}

View file

@ -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"]
}
}