webhookSink
function webhookSink(options): AuditSink;Defined in: src/sinks/webhook.ts:158
Create a Standard Webhooks-signed sink.
For per-tenant self-serve endpoints (customers adding their own SIEM URLs,
with a portal, retries and dead-letters), use the @xtandard/webhooks
bridge instead: @xtandard/audit/sinks/xtandard-webhooks.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
WebhookSinkOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { webhookSink } from "@xtandard/audit/sinks/webhook";
const sink = webhookSink({ url: "https://hooks.example.com/audit", secret: process.env.AUDIT_WEBHOOK_SECRET!, // "whsec_…"});