browser-extensions-playground
    Preparing search index...
    type SnapshotMetric = {
        key: string;
        label: string;
        limit?: number;
        remaining?: number;
        resetsAt?: string;
        unit: MetricUnit;
    }
    Index

    Properties

    key: string
    label: string
    limit?: number

    Optional upper bound for count-like metrics.

    Percent metrics already encode utilization in remaining, so they usually omit this field.

    remaining?: number

    Numeric metric value.

    For count-like units such as messages, requests, tokens, or credits, this is the remaining amount. For percent, this is the used percentage / utilization value. Extractors that read a remaining percent from a provider surface should normalize it before storing it here. Consumers must check unit before interpreting this field.

    resetsAt?: string

    UTC ISO 8601 timestamp from Date.prototype.toISOString().