StreamDefinition
Defined in: src/streams.ts:49
A stream definition.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
batchSize? |
number |
Max items per send. Default 100. |
src/streams.ts:60 |
checkpoints? |
boolean |
Also stream signed checkpoints (default true). |
src/streams.ts:58 |
filter? |
Omit<AuditQuery, "tenant" | "limit" | "cursor" | "order"> |
Only events matching this query’s filters (tenant/pagination fields are ignored). | src/streams.ts:56 |
name |
string |
Unique name; the cursor key. Allowed: a-z A-Z 0-9 . _ -. |
src/streams.ts:51 |
sink |
AuditSink |
- | src/streams.ts:52 |
startFrom? |
"now" | "beginning" |
Where the stream starts the first time it runs: "beginning" (replay every retained log) or "now" (tenants that already exist start at their current head; tenants created later are streamed from their first event). Default "now". |
src/streams.ts:66 |
tenants? |
string[] |
Only these tenants (default: all). | src/streams.ts:54 |