Interface MetricValue

A single metric measurement.

interface MetricValue {
    name: string;
    type: MetricType;
    value: number;
    normalized: boolean;
    unit?: string;
    confidence?: number;
    timestamp: string;
    metadata?: Record<string, unknown>;
}

Properties

name: string

Metric name

Metric type

value: number

Numeric value (0-1 for normalized, raw otherwise)

normalized: boolean

Whether value is normalized (0-1)

unit?: string

Unit of measurement

confidence?: number

Confidence in the measurement (0-1)

timestamp: string

Timestamp

metadata?: Record<string, unknown>

Additional context