feat(gateway,admin): Expand stats for metrics (#3064)

This commit is contained in:
Tarek
2026-10-02 12:58:16 +02:00
committed by GitHub
parent 840dc3dfa5
commit 632067b552
13 changed files with 175 additions and 2 deletions
@@ -1133,6 +1133,9 @@ export type ReloadAllGuildsResponse = z.infer<typeof ReloadAllGuildsResponse>;
export const NodeStatsResponse = z.object({
status: createStringType(1, 256),
sessions: Int32Type,
session_resumes_total: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
websocket_dispatches_total: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
websocket_dispatch_drops_total: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
guilds: Int32Type,
presences: Int32Type,
calls: Int32Type,
@@ -1151,6 +1154,9 @@ export const NodeStatsResponse = z.object({
node_id: createStringType(1, 256),
status: createStringType(1, 256),
sessions: Int32Type,
session_resumes_total: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER).nullable(),
websocket_dispatches_total: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER).nullable(),
websocket_dispatch_drops_total: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER).nullable(),
guilds: Int32Type,
presences: Int32Type,
calls: Int32Type,