Hierarchy

  • DiagnosticsManager

Constructors

  • Parameters

    • sdkKey: string
    • _platform: Platform
    • _diagnosticInitConfig: any

    Returns DiagnosticsManager

Properties

_dataSinceDate: any
_diagnosticInitConfig: any
_id: any
_platform: any
_startTime: any
_streamInits: any

Methods

  • Creates the initial event that is sent by the event processor when the SDK starts up. This will not be repeated during the lifetime of the SDK client.

    Returns DiagnosticInitEvent

  • Creates a periodic event containing time-dependent stats, and resets the state of the manager with regard to those stats.

    Note: the reason droppedEvents, deduplicatedUsers, and eventsInLastBatch are passed into this function, instead of being properties of the DiagnosticsManager, is that the event processor is the one who's calling this function and is also the one who's tracking those stats.

    Parameters

    • droppedEvents: number
    • deduplicatedUsers: number
    • eventsInLastBatch: number

    Returns DiagnosticStatsEvent

  • Records a stream connection attempt (called by the stream processor).

    Parameters

    • timestamp: number

      Time of the beginning of the connection attempt.

    • failed: boolean

      True if the connection failed, or we got a read timeout before receiving a "put".

    • durationMillis: number

      Elapsed time between starting timestamp and when we either gave up/lost the connection or received a successful "put".

    Returns void

Generated using TypeDoc