···11VERSION 1
2233-TOKEN "monitor_list__v0_endpoint_read_0539" READ
44-55-NODE monitor_list__v1_0
33+NODE monitor_list_0
64SQL >
7586 %
···1311 cronTimestamp
1412 {% end %}
1513 AS cronTimestamp, ROUND(AVG(latency)) as avgLatency, COUNT(*) as count, COUNT(CASE WHEN statusCode BETWEEN 200 AND 299 THEN 1 ELSE NULL END) as ok
1616- FROM ping_response__v2
1414+ FROM ping_response
1715 WHERE monitorId = {{ String(monitorId, 'openstatusPing') }} AND cronTimestamp IS NOT NULL
1816 GROUP BY cronTimestamp
1917 ORDER BY cronTimestamp DESC
+5-3
packages/tinybird/pipes/response_list.pipe
···11VERSION 2
2233-NODE response_list__v2_0
33+NODE response_list_0
44SQL >
5566 %
77 SELECT *
88- FROM ping_response__v2
88+ FROM ping_response
99 WHERE monitorId = {{ String(monitorId, 'openstatusPing') }}
1010 {% if defined(region) %}
1111 AND region = {{ String(region) }}
···2020 AND cronTimestamp <= {{ Int64(toDate) }}
2121 {% end %}
2222 ORDER BY timestamp DESC
2323- LIMIT {{Int32(limit, 100)}}2323+ LIMIT {{Int32(limit, 100)}}
2424+2525+