Skip to content

trackkit / dispatcher/types / BatchedEvent

Type Alias: BatchedEvent ​

BatchedEvent = object

Defined in: dispatcher/types.ts:486

Internal

Internal representation of an event in the batching queue.

Properties ​

id ​

id: string

Defined in: dispatcher/types.ts:488

Stable identifier for the event within the batch.


timestamp ​

timestamp: number

Defined in: dispatcher/types.ts:490

Timestamp when the event was enqueued (ms since epoch).


payload ​

payload: DispatchPayload

Defined in: dispatcher/types.ts:492

Provider-agnostic payload.


size ​

size: number

Defined in: dispatcher/types.ts:494

Size estimate used for byte-based batching.


attempts? ​

optional attempts: number

Defined in: dispatcher/types.ts:496

Number of send attempts so far.


lastError? ​

optional lastError: unknown

Defined in: dispatcher/types.ts:498

Last error seen while attempting to send.

Released under the MIT License.