From 20167d537b69dca0c5f63308960d8f1bb220daa5 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 26 May 2026 13:32:05 -0700 Subject: [PATCH] update diagnostics type --- client/src/Types/Diagnostics.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/client/src/Types/Diagnostics.ts b/client/src/Types/Diagnostics.ts index fe2ea6f16..001c3d64a 100644 --- a/client/src/Types/Diagnostics.ts +++ b/client/src/Types/Diagnostics.ts @@ -1,3 +1,5 @@ +import type { ConnectionStates, mongo } from "mongoose"; + export interface Diagnostics { osStats: OsStats; memoryUsage: MemoryUsage; @@ -5,6 +7,7 @@ export interface Diagnostics { v8HeapStats: V8HeapStats; eventLoopDelayMs: number; uptimeMs: number; + mongoStats: MongoStats; } export interface OsStats { @@ -31,3 +34,14 @@ export interface V8HeapStats { usedHeapSizeBytes: number; heapSizeLimitBytes: number; } + +export interface MongoStats { + readyState: ConnectionStates; + host: string; + port: number; + dbName: string; + serverStatus: mongo.Document; + serverInfo: mongo.Document; + stats: mongo.Document; + collectionStats: mongo.Document[]; +}