monitor-api - v1.3.0
    Preparing search index...

    Interface WebVitalMetric

    Serializable Web Vitals metric captured from the web-vitals package.

    interface WebVitalMetric {
        delta: number;
        id: string;
        name: WebVitalName;
        navigationType: string;
        rating: "good" | "needs-improvement" | "poor";
        timestamp: number;
        value: number;
    }
    Index

    Properties

    delta: number

    Delta from the previous report for the same metric instance.

    id: string

    Stable id generated by web-vitals for deduplication.

    Metric name.

    navigationType: string

    Navigation type associated with the metric.

    rating: "good" | "needs-improvement" | "poor"

    Rating based on Web Vitals thresholds.

    timestamp: number

    Unix timestamp in milliseconds for when the metric was recorded.

    value: number

    Current metric value. Units depend on the metric: CLS is unitless, others are milliseconds.