We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3de5ea + a172a80 commit 2b39b17Copy full SHA for 2b39b17
tinybird/pipes/pagerduty_sleep_interruptions.pipe
@@ -53,6 +53,7 @@ SQL >
53
) p
54
LEFT JOIN incidents_resolved i ON i.incident_id = p.incident_id
55
WHERE (toHour(p.event_time) >= 23 OR toHour(p.event_time) < 8) -- Sleep hours
56
+ AND p.event_type = 'incident.triggered'
57
AND p.event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
58
AND p.event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
59
{% if defined(service_id) and service_id != '' %}
0 commit comments