add server diagnostics contract

This commit is contained in:
2026-10-25 04:54:58 +01:00
parent eb2be975c1
commit 1e58ecd7f0
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,13 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": ["status", "database", "twitch_identity_count", "unseen_notification_count", "realtime"],
"properties": {
"status": { "type": "string", "enum": ["healthy"] },
"database": { "type": "string", "enum": ["connected"] },
"twitch_identity_count": { "type": "integer", "minimum": 0 },
"unseen_notification_count": { "type": "integer", "minimum": 0 },
"realtime": { "type": "string", "enum": ["available"] }
}
}
@@ -0,0 +1,7 @@
{
"status": "healthy",
"database": "connected",
"twitch_identity_count": 2,
"unseen_notification_count": 0,
"realtime": "available"
}