Interface EventReporter

[[EventReporter]] is responsible to get an event, buffer and send events to the ingestion service endpoint.

interface EventReporter {
    reportEvent(
        ts: number,
        name: EventName,
        attributes?: { [key: string]: string | number },
    ): Promise<void>;
    start(): void;
    stop(): void;
}

Implemented by

Methods

  • Reports an event with a name, timestamp and any optional attributes.

    Parameters

    • ts: number
    • name: EventName
    • Optionalattributes: { [key: string]: string | number }

    Returns Promise<void>