Skip to content

Commit 9e05e62

Browse files
authored
Merge pull request #6 from tinybirdco/add-vercel
add vercel
2 parents e3998f7 + b7fb30a commit 9e05e62

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://vercel.com/docs/observability/webhooks-overview#events for the event types and payload schema
4+
5+
TAGS "vercel"
6+
7+
SCHEMA >
8+
`type` LowCardinality(String) `json:$.type`,
9+
`id` String `json:$.id`,
10+
`date` DateTime64(3) `json:$.created_at` DEFAULT now(),
11+
`region` LowCardinality(String) `json:$.region` DEFAULT '',
12+
`payload` JSON `json:$.payload` DEFAULT '{}'
13+
14+
ENGINE "MergeTree"
15+
ENGINE_PARTITION_KEY "toYYYYMM(date)"
16+
ENGINE_SORTING_KEY "type, date"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://vercel.com/docs/observability/log-drains/log-drains-reference for the logs schema
4+
5+
TAGS "vercel"
6+
7+
SCHEMA >
8+
`id` String `json:$.id`,
9+
`message` String `json:$.message`,
10+
`date` DateTime64(3) `json:$.timestamp` DEFAULT now(),
11+
`type` LowCardinality(String) `json:$.type` DEFAULT '',
12+
`request_id` Nullable(String) `json:$.requestId`,
13+
`status_code` Nullable(UInt16) `json:$.statusCode`,
14+
`project_id` String `json:$.projectId` DEFAULT '',
15+
`project_name` Nullable(String) `json:$.projectName`,
16+
`deployment_id` Nullable(String) `json:$.deploymentId`,
17+
`source` LowCardinality(String) `json:$.source` DEFAULT '',
18+
`host` Nullable(String) `json:$.host`,
19+
`path` Nullable(String) `json:$.path`,
20+
`destination` Nullable(String) `json:$.destination`,
21+
`proxy` String `json:$.proxy` DEFAULT '',
22+
`level` LowCardinality(String) `json:$.level` DEFAULT '',
23+
`execution_region` Nullable(String) `json:$.executionRegion`,
24+
`environment` Nullable(String) `json:$.environment`,
25+
`branch` Nullable(String) `json:$.branch`,
26+
`build_id` Nullable(String) `json:$.buildId`,
27+
`entrypoint` Nullable(String) `json:$.entrypoint`
28+
29+
ENGINE "MergeTree"
30+
ENGINE_PARTITION_KEY "toYYYYMM(date)"
31+
ENGINE_SORTING_KEY "project_id, date"

0 commit comments

Comments
 (0)