Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: tb (#286)

authored by

Maximilian Kaske and committed by
GitHub
28fe8a74 c5988b4b

+5 -4
+4 -3
packages/tinybird/datasources/ping_response.datasource
··· 1 - VERSION 2 1 + VERSION 3 2 2 3 3 SCHEMA > 4 4 `id` String `json:$.id`, 5 5 `latency` Int16 `json:$.latency`, 6 6 `monitorId` String `json:$.monitorId`, 7 7 `pageId` String `json:$.pageId`, 8 - `region` String `json:$.region`, 8 + `region` LowCardinality(String) `json:$.region`, 9 9 `statusCode` Int16 `json:$.statusCode`, 10 10 `timestamp` Int64 `json:$.timestamp`, 11 11 `url` String `json:$.url`, ··· 14 14 `metadata` String `json:$.metadata` 15 15 16 16 ENGINE "MergeTree" 17 - ENGINE_SORTING_KEY "id, timestamp, url, workspaceId" 17 + ENGINE_SORTING_KEY "monitorId, cronTimestamp" 18 + ENGINE_PARTITION_KEY "toYYYYMM(fromUnixTimestamp64Milli(cronTimestamp))"
+1 -1
packages/tinybird/src/client.ts
··· 13 13 14 14 export function publishPingResponse(tb: Tinybird) { 15 15 return tb.buildIngestEndpoint({ 16 - datasource: "ping_response__v2", 16 + datasource: "ping_response__v3", 17 17 event: tbIngestPingResponse, 18 18 }); 19 19 }