Skip to content

Commit 2b39b17

Browse files
authored
Merge pull request #50 from tinybirdco/pagerduty03
update pipe
2 parents c3de5ea + a172a80 commit 2b39b17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tinybird/pipes/pagerduty_sleep_interruptions.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ SQL >
5353
) p
5454
LEFT JOIN incidents_resolved i ON i.incident_id = p.incident_id
5555
WHERE (toHour(p.event_time) >= 23 OR toHour(p.event_time) < 8) -- Sleep hours
56+
AND p.event_type = 'incident.triggered'
5657
AND p.event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
5758
AND p.event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
5859
{% if defined(service_id) and service_id != '' %}

0 commit comments

Comments
 (0)