agents / Exports / SystemMetricsCollector
Interface: SystemMetricsCollector
System metrics collector interface
Implemented by
Table of contents
Methods
Methods
getMemoryUsage
▸ getMemoryUsage(): Promise<undefined | { used: number ; free: number ; total: number ; heap: { used: number ; total: number } }>
Returns
Promise<undefined | { used: number ; free: number ; total: number ; heap: { used: number ; total: number } }>
Defined in
packages/agents/src/plugins/performance/types.ts:131
getCPUUsage
▸ getCPUUsage(): Promise<undefined | { user: number ; system: number ; percent: number }>
Returns
Promise<undefined | { user: number ; system: number ; percent: number }>
Defined in
packages/agents/src/plugins/performance/types.ts:132
getNetworkStats
▸ getNetworkStats(): Promise<undefined | { requests: number ; bytesReceived: number ; bytesSent: number ; latency: number }>
Returns
Promise<undefined | { requests: number ; bytesReceived: number ; bytesSent: number ; latency: number }>