Interface AnalyticsProcessorOptions

interface AnalyticsProcessorOptions {
    analyticsUrl?: string;
    baseApiUrl?: string;
    environmentKey: string;
    fetch?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
    logger?: Logger;
    requestTimeoutMs?: number;
}

Properties

analyticsUrl?: string

URL of the Flagsmith analytics events API endpoint

Example

https://flagsmith.example.com/api/v1/analytics
baseApiUrl?: string

Deprecated

Use analyticsUrl instead. *

environmentKey: string

Client-side key of the environment that analytics will be recorded for. *

fetch?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Type declaration

logger?: Logger
requestTimeoutMs?: number

Duration in milliseconds to wait for API requests to complete before timing out. Defaults to DEFAULT_REQUEST_TIMEOUT_MS. *