Class AnalyticsProcessor

Tracks how often individual features are evaluated whenever trackFeature is called.

Analytics data is posted after trackFeature is called and at least ANALYTICS_TIMER seconds have passed since the previous analytics API request was made (if any), or by calling flush.

Data will stay in memory indefinitely until it can be successfully posted to the API.

Constructors

Methods

  • Try to flush pending collected data to the Flagsmith analytics API.

    Returns Promise<void>

Properties

analyticsData: {
    [key: string]: any;
}

Type declaration

  • [key: string]: any
analyticsUrl: any
currentFlush: any
customFetch: any
environmentKey: any
lastFlushed: any
logger: any
requestTimeoutMs: any