Constructors

Properties

_appId: string

Methods

  • Parameters

    • OptionalunloadCtx: IProcessTelemetryUnloadContext
    • OptionalunloadState: ITelemetryUnloadState

    Returns void

  • Get current xhr instance

    Parameters

    • Optionalsync: boolean

    Returns any

  • Parameters

    • config: IConfiguration & IConfig
    • core: IAppInsightsCore<IConfiguration>
    • cxt: IProcessTelemetryContext
    • diagLog: IDiagnosticLogger
    • OptionalchannelId: string
    • OptionalunloadHookContainer: IUnloadHookContainer

    Returns void

  • Check if there are no active requests being sent.

    Returns boolean

    True if idle, false otherwise.

  • Pause the sending (transmission) of events, this will cause all events to be batched only until the maximum limits are hit at which point new events are dropped. Will also cause events to NOT be sent during page unload, so if Session storage is disabled events will be lost.

    Returns void

  • Resume the sending (transmission) of events, this will restart the timer and any batched events will be sent using the normal send interval.

    Returns void

  • Trigger the immediate send of buffered data; If executing asynchronously (the default) this may (not required) return an IPromise that will resolve once the send is complete. The actual implementation of the IPromise will be a native Promise (if supported) or the default as supplied by ts-async library

    Parameters

    • async: boolean = true

      Indicates if the events should be sent asynchronously

    • OptionalforcedSender: SenderFunction

      Indicates the forcedSender, undefined if not passed

    • OptionalsendReason: SendRequestReason

    Returns void | IPromise<boolean>

    • Nothing or optionally, if occurring asynchronously a IPromise which will be resolved (or reject) once the send is complete, the IPromise should only be returned when async is true.