xk6-client-prometheus-remote
    Preparing search index...

    Interface Sample

    A sample (data point) with value and optional timestamp.

    Each sample represents a single measurement at a specific point in time. If no timestamp is provided, the current time will be used automatically.

    { value: 42.5 }
    { value: 100, timestamp: Date.now() }
    { value: Math.random() * 100, timestamp: 1643235433000 }
    interface Sample {
        timestamp?: number;
        value: number;
    }
    Index

    Properties

    Properties

    timestamp?: number

    Optional timestamp in milliseconds. If not provided, the current time is used.

    value: number

    The numeric value of the sample.