trackkit / dispatcher/types / Batch
Type Alias: Batch
Batch =
object
Defined in: dispatcher/types.ts:506
Internal
Internal batching structure representing a group of events.
Properties
id
id:
string
Defined in: dispatcher/types.ts:508
Stable batch identifier.
events
events:
BatchedEvent[]
Defined in: dispatcher/types.ts:510
Events contained within this batch.
totalSize
totalSize:
number
Defined in: dispatcher/types.ts:512
Total estimated size of the batch in bytes.
createdAt
createdAt:
number
Defined in: dispatcher/types.ts:514
Creation timestamp (ms since epoch).
attempts
attempts:
number
Defined in: dispatcher/types.ts:516
Number of send attempts.
status
status:
"pending"|"sending"|"sent"|"failed"
Defined in: dispatcher/types.ts:518
Current batch status.
lastError?
optionallastError:unknown
Defined in: dispatcher/types.ts:520
Last error seen when sending this batch.