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

    Interface Monitor

    Runtime monitor facade returned by createMonitor.

    interface Monitor {
        device: IDeviceCollector;
        errors: IErrorCollector;
        events: IEventCollector;
        network: INetworkCollector;
        performance: IPerformanceCollector;
        react: IReactCollector;
        reporter: IReporter;
        resources: IResourceCollector;
        signal: SSignal<MonitorSnapshot>;
        webVitals: IWebVitalsCollector;
        "[dispose]"(): void;
        destroy(): void;
        getSnapshot(): MonitorSnapshot;
        start(): void;
        stop(): void;
        subscribe(cb: (snap: MonitorSnapshot) => void): () => void;
    }
    Index

    Properties

    Device capabilities collector API.

    Optional error collector API.

    Custom event collector API.

    Network collector API.

    Performance collector API.

    React render collector API.

    reporter: IReporter

    Production delivery status, counters, and manual flush.

    Optional Resource Timing collector API.

    signal: SSignal<MonitorSnapshot>

    Reactive signal containing the combined monitor snapshot.

    Web Vitals collector API.

    Methods

    • Same as destroy(), so a monitor can be declared with using. Present only where the runtime defines Symbol.dispose.

      Returns void

    • Stops collectors and releases signal subscriptions owned by this monitor.

      Returns void

    • Starts all enabled collectors. Safe to call in browsers; no-ops where unsupported.

      Returns void