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

    Interface RemoteWriteResponse

    Response from a remote write operation.

    This extends the standard k6 HTTP response with information about the remote write request. Use the status field to check if the write was successful (typically 200 or 204).

    import { check } from 'k6';

    const res = client.store([...]);
    check(res, {
    'is status 200': (r) => r.status === 200,
    });
    interface RemoteWriteResponse {
        body?: string;
        error?: string;
        headers?: Record<string, string>;
        status: number;
    }
    Index

    Properties

    body?: string

    Response body (if any).

    error?: string

    Whether the request was successful (status 2xx).

    headers?: Record<string, string>

    Response headers.

    status: number

    HTTP status code of the response.