mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 12:34:10 +03:00
8ef4efa0f5
https://github.com/twentyhq/private-issues/issues/75 **TLDR** Add twenty-server package, wich contains the last tinybird datasources and pipes used in analytics. This new version of the API endpoints, pipes and datasources are inspired by the implementation of dub.co (https://github.com/dubinc/dub/blob/main/packages/tinybird/). It contains the webhooks analytics, serverless functions duration and serverless functions error count analytics. As well as **In order to test** - Follow the instructions in the README.md on twenty-tinybird using your admin token from twenty_analytics_playground if you want to modify them. - For a better experience add the extension Tinybird support for VsCode - If you want more info about datasources and pipes please read the tinybird docs. --------- Co-authored-by: Félix Malfait <felix@twenty.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
17 lines
462 B
Plaintext
17 lines
462 B
Plaintext
NODE mv
|
|
SQL >
|
|
SELECT
|
|
timestamp,
|
|
workspaceId,
|
|
JSONExtractString(payload, 'webhookId') as webhookId,
|
|
JSONExtractString(payload, 'url') as url,
|
|
JSONExtractBool(payload, 'success') as success,
|
|
JSONExtractInt(payload, 'status') as status,
|
|
JSONExtractString(payload, 'eventName') as eventName,
|
|
version
|
|
FROM event
|
|
WHERE action = 'webhook.response'
|
|
|
|
TYPE MATERIALIZED
|
|
DATASOURCE webhookEventMV
|