Skip to content

Commit 7168e20

Browse files
authored
Merge pull request #16 from tinybirdco/pagerduty
add pagerduty
2 parents 917492b + 64169c3 commit 7168e20

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Deploy this project to your Tinybird account and configure the webhooks for the
1414
- [Clerk](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-clerk)
1515
- [GitLab](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-gitlab)
1616
- [Orb](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-orb)
17+
- [PagerDuty](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-pagerduty)
1718
- [Resend](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-resend)
1819
- [Rudderstack](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-rudderstack)
1920
- [Sentry](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-sentry)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"event":{"id":"5ac64822-4adc-4fda-ade0-410becf0de4f","event_type":"incident.priority_updated","resource_type":"incident","occurred_at":"2020-10-02T18:45:22.169Z","agent":{"html_url":"https://acme.pagerduty.com/users/PLH1HKV","id":"PLH1HKV","self":"https://api.pagerduty.com/users/PLH1HKV","summary":"Tenex Engineer","type":"user_reference"},"client":{"name":"PagerDuty"},"data":{"id":"PGR0VU2","type":"incident","self":"https://api.pagerduty.com/incidents/PGR0VU2","html_url":"https://acme.pagerduty.com/incidents/PGR0VU2","number":2,"status":"triggered","incident_key":"d3640fbd41094207a1c11e58e46b1662","created_at":"2020-04-09T15:16:27Z","title":"A little bump in the road","service":{"html_url":"https://acme.pagerduty.com/services/PF9KMXH","id":"PF9KMXH","self":"https://api.pagerduty.com/services/PF9KMXH","summary":"API Service","type":"service_reference"},"assignees":[{"html_url":"https://acme.pagerduty.com/users/PTUXL6G","id":"PTUXL6G","self":"https://api.pagerduty.com/users/PTUXL6G","summary":"User 123","type":"user_reference"}],"escalation_policy":{"html_url":"https://acme.pagerduty.com/escalation_policies/PUS0KTE","id":"PUS0KTE","self":"https://api.pagerduty.com/escalation_policies/PUS0KTE","summary":"Default","type":"escalation_policy_reference"},"teams":[{"html_url":"https://acme.pagerduty.com/teams/PFCVPS0","id":"PFCVPS0","self":"https://api.pagerduty.com/teams/PFCVPS0","summary":"Engineering","type":"team_reference"}],"priority":{"html_url":"https://acme.pagerduty.com/account/incident_priorities","id":"PSO75BM","self":"https://api.pagerduty.com/priorities/PSO75BM","summary":"P1","type":"priority_reference"},"urgency":"high","conference_bridge":{"conference_number":"+1 1234123412,,987654321#","conference_url":"https://example.com"},"resolve_reason":null}}}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://developer.pagerduty.com/docs/webhooks-overview#webhook-payload for the `data` schema definition for each event type
4+
5+
TAGS "pagerduty"
6+
7+
SCHEMA >
8+
`event_id` String `json:$.event.id`,
9+
`event_type` String `json:$.event.event_type`,
10+
`resource_type` String `json:$.event.resource_type`,
11+
`occurred_at` DateTime64(3) `json:$.event.occurred_at`,
12+
`agent` JSON `json:$.event.agent` DEFAULT '{}',
13+
`client` JSON `json:$.event.client` DEFAULT '{}',
14+
`data` JSON `json:$.event.data` DEFAULT '{}'
15+
16+
ENGINE "MergeTree"
17+
ENGINE_PARTITION_KEY "toYYYYMM(occurred_at)"
18+
ENGINE_SORTING_KEY "resource_type, event_type, occurred_at"

0 commit comments

Comments
 (0)