Skip to content

AuditSink

Defined in: src/streams.ts:40

A destination. send must resolve only once the batch is durably accepted (2xx, flushed, …) and throw otherwise — the cursor advances on resolve.

Property Modifier Type Description Defined in
kind readonly string Short kind label for the UI ("http", "datadog", …). src/streams.ts:42
close?(): Promise<void>;

Defined in: src/streams.ts:45

Optional cleanup on runner stop.

Promise<void>


send(batch): Promise<void>;

Defined in: src/streams.ts:43

Parameter Type
batch StreamBatch

Promise<void>