update diagnostics type
This commit is contained in:
1 parent
bf43632482
commit
20167d537b
1 file changed
+14
@@ -1,3 +1,5 @@
|
|||||||
|
import type { ConnectionStates, mongo } from "mongoose";
|
||||||
|
|
||||||
export interface Diagnostics {
|
export interface Diagnostics {
|
||||||
osStats: OsStats;
|
osStats: OsStats;
|
||||||
memoryUsage: MemoryUsage;
|
memoryUsage: MemoryUsage;
|
||||||
@@ -5,6 +7,7 @@ export interface Diagnostics {
|
|||||||
v8HeapStats: V8HeapStats;
|
v8HeapStats: V8HeapStats;
|
||||||
eventLoopDelayMs: number;
|
eventLoopDelayMs: number;
|
||||||
uptimeMs: number;
|
uptimeMs: number;
|
||||||
|
mongoStats: MongoStats;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OsStats {
|
export interface OsStats {
|
||||||
@@ -31,3 +34,14 @@ export interface V8HeapStats {
|
|||||||
usedHeapSizeBytes: number;
|
usedHeapSizeBytes: number;
|
||||||
heapSizeLimitBytes: 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[];
|
||||||
|
}
|
||||||
Reference in new issue
Block a user