Interface MetricStats

Aggregated statistics for a specific metric type.

interface MetricStats {
    avgDuration: number;
    avgWaitTime: number;
    count: number;
    maxDuration: number;
    maxWaitTime: number;
    median: number;
    metricType: PerformanceMetricType;
    minDuration: number;
    minWaitTime: number;
    p95: number;
    p99: number;
    stdDev: number;
    totalDuration: number;
}

Properties

avgDuration: number

Average duration (ms)

avgWaitTime: number

Average wait time between events (ms)

count: number

Number of recorded samples

maxDuration: number

Maximum duration (ms)

maxWaitTime: number

Maximum wait time between events (ms)

median: number

Median duration (ms)

Type of metric

minDuration: number

Minimum duration (ms)

minWaitTime: number

Minimum wait time between events (ms)

p95: number

95th percentile duration (ms)

p99: number

99th percentile duration (ms)

stdDev: number

Standard deviation of duration (ms)

totalDuration: number

Total duration across all samples (ms)