Internal Interface

interface IInternalOfflineSupport {
    batch?: ((arr: string[]) => string);
    createOneDSPayload?: ((evts: ITelemetryItem[]) => IPayloadData);
    createPayload: ((data: string | Uint8Array) => IPayloadData);
    getUrl: (() => string);
    serialize?: ((input: ITelemetryItem, convertUndefined?: any) => string);
    shouldProcess?: ((evt: ITelemetryItem) => boolean);
}

Properties

batch?: ((arr: string[]) => string)

Batch an array of strings into one string

Type declaration

    • (arr): string
    • Parameters

      • arr: string[]

        array of strings

      Returns string

      a string represent all items in the given array

createOneDSPayload?: ((evts: ITelemetryItem[]) => IPayloadData)

Create 1ds payload data

Type declaration

createPayload: ((data: string | Uint8Array) => IPayloadData)

Create payload data

Type declaration

getUrl: (() => string)

Get current endpoint url

Type declaration

    • (): string
    • Returns string

      endpoint

serialize?: ((input: ITelemetryItem, convertUndefined?: any) => string)

Serialize an item into a string

Type declaration

    • (input, convertUndefined?): string
    • Parameters

      • input: ITelemetryItem

        telemetry item

      • OptionalconvertUndefined: any

        convert undefined to a custom-defined object

      Returns string

      Serialized string

shouldProcess?: ((evt: ITelemetryItem) => boolean)

If the item should be processed by offline channel

Type declaration

    • (evt): boolean
    • Parameters

      Returns boolean

      should process or not