Files
dataroom/lib/tinybird/datasources/webhook_events.datasource
2024-12-08 13:07:37 +09:00

20 lines
612 B
Plaintext

VERSION 1
DESCRIPTION >
Webhook events are events when a webhook is triggered
SCHEMA >
`timestamp` DateTime64(3) `json:$.timestamp` DEFAULT now(),
`event_id` String `json:$.event_id`,
`webhook_id` String `json:$.webhook_id`,
`url` String `json:$.url`,
`event` LowCardinality(String) `json:$.event`,
`http_status` UInt16 `json:$.http_status`,
`request_body` String `json:$.request_body`,
`response_body` String `json:$.response_body`,
`message_id` String `json:$.message_id`
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(timestamp)"
ENGINE_SORTING_KEY "timestamp, webhook_id, event_id"