WebhookSinkOptions
Defined in: src/sinks/webhook.ts:46
Options for webhookSink.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
batchType? |
string |
Envelope type for batch mode. Default "audit.batch". |
src/sinks/webhook.ts:57 |
fetch? |
SinkFetch |
Custom fetch (tests, proxies). Default globalThis.fetch. |
src/sinks/webhook.ts:65 |
headers? |
SinkHeaders |
Extra headers, static or resolved per batch. | src/sinks/webhook.ts:61 |
itemType? |
(item) => string |
Envelope type for item mode. Default audit.<action> / audit.checkpoint. |
src/sinks/webhook.ts:59 |
mode? |
"batch" | "item" |
"batch" (default): one request per batch. "item": one request per event / checkpoint. |
src/sinks/webhook.ts:55 |
now? |
() => number |
Clock (unix millis) for webhook-timestamp. Default Date.now. |
src/sinks/webhook.ts:67 |
secret |
string | string[] |
whsec_… secret(s). Pass several during rotation: the request carries one signature per secret and receivers accept any match. |
src/sinks/webhook.ts:53 |
timeoutMs? |
number |
Request timeout. Default 10 000 ms. | src/sinks/webhook.ts:63 |
url |
string |
Receiver URL. | src/sinks/webhook.ts:48 |