fix(metrics): fix metrics
This commit is contained in:
@ -49,8 +49,8 @@ export interface IMetrics {
|
||||
average(): IThroughputData; // Last 60 seconds
|
||||
custom(seconds: number): IThroughputData;
|
||||
history(seconds: number): Array<IThroughputHistoryPoint>;
|
||||
byRoute(windowSeconds?: number): Map<string, IThroughputData>;
|
||||
byIP(windowSeconds?: number): Map<string, IThroughputData>;
|
||||
byRoute(windowSeconds?: number): Map<string, IThroughputData>; // Default: 1 second
|
||||
byIP(windowSeconds?: number): Map<string, IThroughputData>; // Default: 1 second
|
||||
};
|
||||
|
||||
// Request metrics
|
||||
@ -109,10 +109,4 @@ export interface IByteTracker {
|
||||
bytesOut: number;
|
||||
startTime: number;
|
||||
lastUpdate: number;
|
||||
// Track bytes at window boundaries for rate calculation
|
||||
windowSnapshots?: Array<{
|
||||
timestamp: number;
|
||||
bytesIn: number;
|
||||
bytesOut: number;
|
||||
}>;
|
||||
}
|
Reference in New Issue
Block a user