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

    Interface ProductionReportConfig

    Configuration for periodic production reporting.

    interface ProductionReportConfig {
        endpoint: string;
        headers?: Record<string, string>;
        interval: number;
        retry?: ProductionReportRetryPolicy;
        timeout?: number;
        transform?: (snap: MonitorSnapshot) => unknown;
        transport?: ProductionReportTransport;
    }
    Index

    Properties

    endpoint: string

    HTTP endpoint that receives monitor snapshots.

    headers?: Record<string, string>

    Additional HTTP headers, including authorization or tenant headers.

    interval: number

    Reporting interval in milliseconds.

    Optional policy for retrying failed or timed-out deliveries.

    timeout?: number

    Maximum delivery time in milliseconds. Omit to disable timeouts.

    transform?: (snap: MonitorSnapshot) => unknown

    Optional mapper used to customize the payload before it is posted. It receives the full, potentially sensitive snapshot; without it, the reporter sends only bounded aggregates.

    Custom report transport. Defaults to an HTTP POST through fetch.