···11-# Data Source created from Pipe '__ttl_45d_count_utc__v1'
22-VERSION 1
11+VERSION 0
22+# Data Source created from Pipe 'aggregate__http_status_45d__v0'
3344SCHEMA >
55 `time` DateTime('UTC'),
···11-# Data Source created from Pipe '__ttl_7d_count_utc__v1'
22-VERSION 1
11+VERSION 0
22+# Data Source created from Pipe 'aggregate__http_status_7d__v0'
3344SCHEMA >
55 `time` DateTime('UTC'),
···11-VERSION 1
22-TOKEN "__ttl_14d_chart_all_regions_get__v1_endpoint_read_6659" READ
33-44-NODE __ttl_14d_chart_all_regions_get_0
55-SQL >
66-77- %
88- SELECT
99- toStartOfInterval(
1010- toDateTime(cronTimestamp / 1000), INTERVAL 1 HOUR
1111- ) as h,
1212- toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
1313- round(quantile(0.5)(latency)) as p50Latency,
1414- round(quantile(0.75)(latency)) as p75Latency,
1515- round(quantile(0.9)(latency)) as p90Latency,
1616- round(quantile(0.95)(latency)) as p95Latency,
1717- round(quantile(0.99)(latency)) as p99Latency
1818- FROM __ttl_14d_mv
1919- WHERE monitorId = {{ String(monitorId, '1') }}
2020- GROUP BY h
2121- ORDER BY h DESC
2222-2323-
-25
packages/tinybird/pipes/__ttl_14d_chart_get.pipe
···11-VERSION 1
22-33-NODE __ttl_14d_chart_get_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- toStartOfInterval(
1010- toDateTime(cronTimestamp / 1000),
1111- INTERVAL {{ Int64(interval, 30) }} MINUTE
1212- ) as h,
1313- toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
1414- round(quantile(0.5)(latency)) as p50Latency,
1515- round(quantile(0.75)(latency)) as p75Latency,
1616- round(quantile(0.9)(latency)) as p90Latency,
1717- round(quantile(0.95)(latency)) as p95Latency,
1818- round(quantile(0.99)(latency)) as p99Latency
1919- FROM __ttl_14d_mv__v1
2020- WHERE
2121- monitorId = {{ String(monitorId, '1') }}
2222- GROUP BY h, region
2323- ORDER BY h DESC
2424-2525-
···11-VERSION 1
22-33-NODE __ttl_14d_metrics_get_0
44-SQL >
55-66- %
77- SELECT
88- round(quantile(0.5)(latency)) as p50Latency,
99- round(quantile(0.75)(latency)) as p75Latency,
1010- round(quantile(0.9)(latency)) as p90Latency,
1111- round(quantile(0.95)(latency)) as p95Latency,
1212- round(quantile(0.99)(latency)) as p99Latency,
1313- count() as count,
1414- count(if(error = 0, 1, NULL)) AS ok,
1515- max(cronTimestamp) AS lastTimestamp
1616- FROM __ttl_14d_mv__v1
1717- WHERE
1818- monitorId = {{ String(monitorId, '1') }}
1919- AND time >= toDateTime64(now() - INTERVAL 14 DAY, 3)
2020- UNION ALL
2121- SELECT
2222- round(quantile(0.5)(latency)) AS p50Latency,
2323- round(quantile(0.75)(latency)) AS p75Latency,
2424- round(quantile(0.9)(latency)) AS p90Latency,
2525- round(quantile(0.95)(latency)) AS p95Latency,
2626- round(quantile(0.99)(latency)) AS p99Latency,
2727- count() as count,
2828- count(if(error = 0, 1, NULL)) AS ok,
2929- NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant
3030- FROM __ttl_45d_mv__v1
3131- WHERE
3232- monitorId = {{ String(monitorId, '1') }}
3333- AND time >= toDateTime64(now() - INTERVAL 28 DAY, 3)
3434- AND time < toDateTime64(now() - INTERVAL 14 DAY, 3)
3535-3636-
···11-VERSION 1
22-33-NODE __ttl_14d_metrics_get_by_region_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- round(quantile(0.5)(latency)) as p50Latency,
1010- round(quantile(0.75)(latency)) as p75Latency,
1111- round(quantile(0.9)(latency)) as p90Latency,
1212- round(quantile(0.95)(latency)) as p95Latency,
1313- round(quantile(0.99)(latency)) as p99Latency,
1414- count() as count,
1515- count(if(error = 0, 1, NULL)) AS ok,
1616- max(cronTimestamp) AS lastTimestamp
1717- FROM __ttl_14d_mv__v1
1818- WHERE
1919- monitorId = {{ String(monitorId, '1') }}
2020- GROUP BY region
2121-2222-
···11-VERSION 1
22-33-TOKEN "__ttl_1d_chart_get_endpoint_read_4815" READ
44-55-NODE __ttl_1d_chart_get_0
66-SQL >
77-88- %
99- SELECT
1010- region,
1111- toStartOfInterval(
1212- toDateTime(cronTimestamp / 1000),
1313- INTERVAL {{ Int64(interval, 30) }} MINUTE
1414- ) as h,
1515- toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
1616- round(quantile(0.5)(latency)) as p50Latency,
1717- round(quantile(0.75)(latency)) as p75Latency,
1818- round(quantile(0.9)(latency)) as p90Latency,
1919- round(quantile(0.95)(latency)) as p95Latency,
2020- round(quantile(0.99)(latency)) as p99Latency
2121- FROM __ttl_1d_mv__v1
2222- WHERE
2323- monitorId = {{ String(monitorId, '1') }}
2424- GROUP BY h, region
2525- ORDER BY h DESC
2626-2727-
-13
packages/tinybird/pipes/__ttl_1d_list_get.pipe
···11-VERSION 1
22-33-NODE __ttl_1d_list_get__v0_0
44-SQL >
55-66- %
77- SELECT latency, monitorId, error, region, statusCode, timestamp, url, workspaceId, cronTimestamp
88- FROM __ttl_1d_mv__v1
99- WHERE
1010- monitorId = {{ String(monitorId, '1') }}
1111- ORDER BY cronTimestamp DESC
1212-1313-
-36
packages/tinybird/pipes/__ttl_1d_metrics_get.pipe
···11-VERSION 1
22-33-NODE __ttl_1d_metrics_get_0
44-SQL >
55-66- %
77- SELECT
88- round(quantile(0.5)(latency)) as p50Latency,
99- round(quantile(0.75)(latency)) as p75Latency,
1010- round(quantile(0.9)(latency)) as p90Latency,
1111- round(quantile(0.95)(latency)) as p95Latency,
1212- round(quantile(0.99)(latency)) as p99Latency,
1313- count() as count,
1414- count(if(error = 0, 1, NULL)) AS ok,
1515- max(cronTimestamp) AS lastTimestamp
1616- FROM __ttl_1d_mv__v1
1717- WHERE
1818- monitorId = {{ String(monitorId, '1') }}
1919- AND time >= toDateTime64(now() - INTERVAL 1 DAY, 3)
2020- UNION ALL
2121- SELECT
2222- round(quantile(0.5)(latency)) AS p50Latency,
2323- round(quantile(0.75)(latency)) AS p75Latency,
2424- round(quantile(0.9)(latency)) AS p90Latency,
2525- round(quantile(0.95)(latency)) AS p95Latency,
2626- round(quantile(0.99)(latency)) AS p99Latency,
2727- count() as count,
2828- count(if(error = 0, 1, NULL)) AS ok,
2929- NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant
3030- FROM __ttl_3d_mv__v1
3131- WHERE
3232- monitorId = {{ String(monitorId, '1') }}
3333- AND time >= toDateTime64(now() - INTERVAL 2 DAY, 3)
3434- AND time < toDateTime64(now() - INTERVAL 1 DAY, 3)
3535-3636-
···11-VERSION 1
22-33-NODE __ttl_1d_metrics_get_by_region_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- round(quantile(0.5)(latency)) as p50Latency,
1010- round(quantile(0.75)(latency)) as p75Latency,
1111- round(quantile(0.9)(latency)) as p90Latency,
1212- round(quantile(0.95)(latency)) as p95Latency,
1313- round(quantile(0.99)(latency)) as p99Latency,
1414- count() as count,
1515- count(if(error = 0, 1, NULL)) AS ok
1616- FROM __ttl_1d_mv__v1
1717- WHERE
1818- monitorId = {{ String(monitorId, '1') }}
1919- GROUP BY region
2020-2121-
···11-VERSION 1
22-33-NODE __ttl_1h_last_timestamp_workspace_get__v0_0
44-SQL >
55-66- %
77- SELECT max(cronTimestamp) as cronTimestamp
88- FROM __ttl_1h_mv__v1
99- WHERE workspaceId = {{ String(workspaceId, '1') }}
1010-1111-
-14
packages/tinybird/pipes/__ttl_1h_list_get.pipe
···11-VERSION 1
22-33-NODE __ttl_1h_list_get__v0_0
44-SQL >
55-66- %
77- -- FIXME: `timestamp` is missing on 1h, 3d, 7d, 45d mv!
88- SELECT latency, monitorId, error, region, statusCode, url, workspaceId, cronTimestamp, timestamp
99- FROM __ttl_1h_mv__v1
1010- WHERE
1111- monitorId = {{ String(monitorId, '1') }}
1212- ORDER BY cronTimestamp DESC
1313-1414-
-36
packages/tinybird/pipes/__ttl_1h_metrics_get.pipe
···11-VERSION 1
22-33-NODE __ttl_1h_metrics_get_0
44-SQL >
55-66- %
77- SELECT
88- round(quantile(0.5)(latency)) as p50Latency,
99- round(quantile(0.75)(latency)) as p75Latency,
1010- round(quantile(0.9)(latency)) as p90Latency,
1111- round(quantile(0.95)(latency)) as p95Latency,
1212- round(quantile(0.99)(latency)) as p99Latency,
1313- count() as count,
1414- count(if(error = 0, 1, NULL)) AS ok,
1515- max(cronTimestamp) AS lastTimestamp
1616- FROM __ttl_1h_mv__v1
1717- WHERE
1818- monitorId = {{ String(monitorId, '1') }}
1919- AND time >= toDateTime64(now() - INTERVAL 1 HOUR, 3)
2020- UNION ALL
2121- SELECT
2222- round(quantile(0.5)(latency)) AS p50Latency,
2323- round(quantile(0.75)(latency)) AS p75Latency,
2424- round(quantile(0.9)(latency)) AS p90Latency,
2525- round(quantile(0.95)(latency)) AS p95Latency,
2626- round(quantile(0.99)(latency)) AS p99Latency,
2727- count() as count,
2828- count(if(error = 0, 1, NULL)) AS ok,
2929- NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant
3030- FROM __ttl_1d_mv__v1
3131- WHERE
3232- monitorId = {{ String(monitorId, '1') }}
3333- AND time >= toDateTime64(now() - INTERVAL 2 HOUR, 3)
3434- AND time < toDateTime64(now() - INTERVAL 1 HOUR, 3)
3535-3636-
···11-VERSION 1
22-33-NODE __ttl_3d_chart_get_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- toStartOfInterval(
1010- toDateTime(cronTimestamp / 1000),
1111- INTERVAL {{ Int64(interval, 30) }} MINUTE
1212- ) as h,
1313- toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
1414- round(quantile(0.5)(latency)) as p50Latency,
1515- round(quantile(0.75)(latency)) as p75Latency,
1616- round(quantile(0.9)(latency)) as p90Latency,
1717- round(quantile(0.95)(latency)) as p95Latency,
1818- round(quantile(0.99)(latency)) as p99Latency
1919- FROM __ttl_3d_mv__v0
2020- WHERE
2121- monitorId = {{ String(monitorId, '1') }}
2222- GROUP BY h, region
2323- ORDER BY h DESC
2424-2525-
-14
packages/tinybird/pipes/__ttl_3d_list_get.pipe
···11-VERSION 1
22-33-NODE __ttl_3d_list_get__v1_0
44-SQL >
55-66- %
77- SELECT latency, monitorId, error, region, statusCode, url, workspaceId, cronTimestamp, timestamp
88- FROM __ttl_3d_mv__v1
99- WHERE
1010- monitorId = {{ String(monitorId, '1') }}
1111- {% if defined(url) %} AND url = {{ String(url) }} {% end %}
1212- ORDER BY cronTimestamp DESC
1313-1414-
-36
packages/tinybird/pipes/__ttl_3d_metrics_get.pipe
···11-VERSION 1
22-33-NODE __ttl_3d_metrics_get_0
44-SQL >
55-66- %
77- SELECT
88- round(quantile(0.5)(latency)) as p50Latency,
99- round(quantile(0.75)(latency)) as p75Latency,
1010- round(quantile(0.9)(latency)) as p90Latency,
1111- round(quantile(0.95)(latency)) as p95Latency,
1212- round(quantile(0.99)(latency)) as p99Latency,
1313- count() as count,
1414- count(if(error = 0, 1, NULL)) AS ok,
1515- max(cronTimestamp) AS lastTimestamp
1616- FROM __ttl_3d_mv__v1
1717- WHERE
1818- monitorId = {{ String(monitorId, '1') }}
1919- AND time >= toDateTime64(now() - INTERVAL 3 DAY, 3)
2020- UNION ALL
2121- SELECT
2222- round(quantile(0.5)(latency)) AS p50Latency,
2323- round(quantile(0.75)(latency)) AS p75Latency,
2424- round(quantile(0.9)(latency)) AS p90Latency,
2525- round(quantile(0.95)(latency)) AS p95Latency,
2626- round(quantile(0.99)(latency)) AS p99Latency,
2727- count() as count,
2828- count(if(error = 0, 1, NULL)) AS ok,
2929- NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant
3030- FROM __ttl_7d_mv__v1
3131- WHERE
3232- monitorId = {{ String(monitorId, '1') }}
3333- AND time >= toDateTime64(now() - INTERVAL 6 DAY, 3)
3434- AND time < toDateTime64(now() - INTERVAL 3 DAY, 3)
3535-3636-
···11-VERSION 1
22-33-NODE __ttl_3d_metrics_get_by_region_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- round(quantile(0.5)(latency)) as p50Latency,
1010- round(quantile(0.75)(latency)) as p75Latency,
1111- round(quantile(0.9)(latency)) as p90Latency,
1212- round(quantile(0.95)(latency)) as p95Latency,
1313- round(quantile(0.99)(latency)) as p99Latency,
1414- count() as count,
1515- count(if(error = 0, 1, NULL)) AS ok,
1616- max(cronTimestamp) AS lastTimestamp
1717- FROM __ttl_3d_mv__v0
1818- WHERE
1919- monitorId = {{ String(monitorId, '1') }}
2020- GROUP BY region
2121-2222-
···11-VERSION 1
22-33-NODE __ttl_45d_all_details_get_0
44-SQL >
55-66- %
77- SELECT *
88- from __ttl_45d_all_mv__v1
99- WHERE
1010- monitorId = {{ String(monitorId, '1') }}
1111- AND cronTimestamp = {{ Int64(cronTimestamp, 1709477432205) }}
1212- AND region = {{ String(region, 'ams') }}
1313-1414-
-23
packages/tinybird/pipes/__ttl_45d_count_utc.pipe
···11-VERSION 1
22-33-DESCRIPTION >
44- TODO: descripe what it is for!
55-66-77-NODE __ttl_45d_count_utc_0
88-SQL >
99-1010- SELECT
1111- toStartOfDay(toTimeZone(time, 'UTC')) AS time,
1212- monitorId,
1313- countState() AS count,
1414- countState(if(error = 0, 1, NULL)) AS ok
1515- FROM __ttl_45d_mv__v1
1616- GROUP BY
1717- time,
1818- monitorId
1919-2020-TYPE materialized
2121-DATASOURCE __ttl_45d_count_utc_mv__v1
2222-2323-
···11VERSION 1
22+TOKEN "__ttl_45d_count_utc_get__v1_endpoint_read_7956" READ
2334NODE __ttl_45d_count_utc_get_0
45SQL >
5667 %
78 SELECT time as day, countMerge(count) as count, countMerge(ok) as ok
88- FROM __ttl_45d_count_utc_mv__v1
99+ FROM mv__http_status_45d
910 WHERE
1011 monitorId = {{ String(monitorId, '4') }}
1112 GROUP BY day
···1415 FROM
1516 toStartOfDay(toStartOfDay(toTimeZone(now(), 'UTC')))
1617 TO toStartOfDay(
1717- date_sub(DAY, 7, now())
1818+ date_sub(DAY, 45, now())
1819 ) STEP INTERVAL -1 DAY
19202021
···11-VERSION 1
22-TOKEN "__ttl_7d_chart_all_regions_get__v1_endpoint_read_8648" READ
33-44-NODE __ttl_7d_chart_all_regions_get_0
55-SQL >
66-77- %
88- SELECT
99- toStartOfInterval(
1010- toDateTime(cronTimestamp / 1000), INTERVAL 1 HOUR
1111- ) as h,
1212- toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
1313- round(quantile(0.5)(latency)) as p50Latency,
1414- round(quantile(0.75)(latency)) as p75Latency,
1515- round(quantile(0.9)(latency)) as p90Latency,
1616- round(quantile(0.95)(latency)) as p95Latency,
1717- round(quantile(0.99)(latency)) as p99Latency
1818- FROM __ttl_7d_mv
1919- WHERE monitorId = {{ String(monitorId, '1') }}
2020- GROUP BY h
2121- ORDER BY h DESC
2222-2323-
-25
packages/tinybird/pipes/__ttl_7d_chart_get.pipe
···11-VERSION 1
22-33-NODE __ttl_7d_chart_get_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- toStartOfInterval(
1010- toDateTime(cronTimestamp / 1000),
1111- INTERVAL {{ Int64(interval, 30) }} MINUTE
1212- ) as h,
1313- toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,
1414- round(quantile(0.5)(latency)) as p50Latency,
1515- round(quantile(0.75)(latency)) as p75Latency,
1616- round(quantile(0.9)(latency)) as p90Latency,
1717- round(quantile(0.95)(latency)) as p95Latency,
1818- round(quantile(0.99)(latency)) as p99Latency
1919- FROM __ttl_7d_mv__v1
2020- WHERE
2121- monitorId = {{ String(monitorId, '1') }}
2222- GROUP BY h, region
2323- ORDER BY h DESC
2424-2525-
-24
packages/tinybird/pipes/__ttl_7d_count.pipe
···11-VERSION 1
22-DESCRIPTION >
33- TODO: descripe what it is for!
44-55-66-NODE __ttl_7d_count_0
77-SQL >
88-99- SELECT
1010- time,
1111- monitorId,
1212- url,
1313- countState() AS count,
1414- countState(if(error = 0, 1, NULL)) AS ok
1515- FROM __ttl_45d_mv
1616- GROUP BY
1717- time,
1818- monitorId,
1919- url
2020-2121-TYPE materialized
2222-DATASOURCE __ttl_7d_count_mv
2323-2424-
-22
packages/tinybird/pipes/__ttl_7d_count_get.pipe
···11-VERSION 1
22-TOKEN "__ttl_7d_count_get__v1_endpoint_read_7412" READ
33-44-NODE __ttl_7d_count_get_0
55-SQL >
66-77- %
88- SELECT time as day, countMerge(count) as count, countMerge(ok) as ok
99- FROM __ttl_7d_count_mv_test
1010- WHERE
1111- monitorId = {{ String(monitorId, '4') }}
1212- {% if defined(url) %} AND url = {{ String(url) }} {% end %}
1313- GROUP BY day
1414- ORDER BY day DESC
1515- WITH FILL
1616- FROM
1717- toStartOfDay(now())
1818- TO toStartOfDay(
1919- date_sub(DAY, 7, now())
2020- ) STEP INTERVAL -1 DAY
2121-2222-
-23
packages/tinybird/pipes/__ttl_7d_count_utc.pipe
···11-VERSION 1
22-33-DESCRIPTION >
44- TODO: descripe what it is for!
55-66-77-NODE __ttl_7d_count_utc_0
88-SQL >
99-1010- SELECT
1111- toStartOfDay(toTimeZone(time, 'UTC')) AS time,
1212- monitorId,
1313- countState() AS count,
1414- countState(if(error = 0, 1, NULL)) AS ok
1515- FROM __ttl_7d_mv__v1
1616- GROUP BY
1717- time,
1818- monitorId
1919-2020-TYPE materialized
2121-DATASOURCE __ttl_7d_count_utc_mv__v1
2222-2323-
···11-VERSION 1
22-33-NODE __ttl_7d_count_utc_get_0
44-SQL >
55-66- %
77- SELECT time as day, countMerge(count) as count, countMerge(ok) as ok
88- FROM __ttl_7d_count_utc_mv__v1
99- WHERE
1010- monitorId = {{ String(monitorId, '4') }}
1111- GROUP BY day
1212- ORDER BY day DESC
1313- WITH FILL
1414- FROM
1515- toStartOfDay(toStartOfDay(toTimeZone(now(), 'UTC')))
1616- TO toStartOfDay(
1717- date_sub(DAY, 7, now())
1818- ) STEP INTERVAL -1 DAY
1919-2020-
-14
packages/tinybird/pipes/__ttl_7d_list_get.pipe
···11-VERSION 1
22-33-NODE __ttl_7d_list_get__v1_0
44-SQL >
55-66- %
77- SELECT latency, monitorId, error, region, statusCode, url, workspaceId, cronTimestamp, timestamp
88- FROM __ttl_7d_mv__v1
99- WHERE
1010- monitorId = {{ String(monitorId, '1') }}
1111- {% if defined(url) %} AND url = {{ String(url) }} {% end %}
1212- ORDER BY cronTimestamp DESC
1313-1414-
-36
packages/tinybird/pipes/__ttl_7d_metrics_get.pipe
···11-VERSION 1
22-33-NODE __ttl_7d_metrics_get_0
44-SQL >
55-66- %
77- SELECT
88- round(quantile(0.5)(latency)) as p50Latency,
99- round(quantile(0.75)(latency)) as p75Latency,
1010- round(quantile(0.9)(latency)) as p90Latency,
1111- round(quantile(0.95)(latency)) as p95Latency,
1212- round(quantile(0.99)(latency)) as p99Latency,
1313- count() as count,
1414- count(if(error = 0, 1, NULL)) AS ok,
1515- max(cronTimestamp) AS lastTimestamp
1616- FROM __ttl_7d_mv__v1
1717- WHERE
1818- monitorId = {{ String(monitorId, '1') }}
1919- AND time >= toDateTime64(now() - INTERVAL 7 DAY, 3)
2020- UNION ALL
2121- SELECT
2222- round(quantile(0.5)(latency)) AS p50Latency,
2323- round(quantile(0.75)(latency)) AS p75Latency,
2424- round(quantile(0.9)(latency)) AS p90Latency,
2525- round(quantile(0.95)(latency)) AS p95Latency,
2626- round(quantile(0.99)(latency)) AS p99Latency,
2727- count() as count,
2828- count(if(error = 0, 1, NULL)) AS ok,
2929- NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant
3030- FROM __ttl_14d_mv__v1
3131- WHERE
3232- monitorId = {{ String(monitorId, '1') }}
3333- AND time >= toDateTime64(now() - INTERVAL 14 DAY, 3)
3434- AND time < toDateTime64(now() - INTERVAL 7 DAY, 3)
3535-3636-
···11-VERSION 1
22-33-NODE __ttl_7d_metrics_get_by_region_0
44-SQL >
55-66- %
77- SELECT
88- region,
99- round(quantile(0.5)(latency)) as p50Latency,
1010- round(quantile(0.75)(latency)) as p75Latency,
1111- round(quantile(0.9)(latency)) as p90Latency,
1212- round(quantile(0.95)(latency)) as p95Latency,
1313- round(quantile(0.99)(latency)) as p99Latency,
1414- count() as count,
1515- count(if(error = 0, 1, NULL)) AS ok,
1616- max(cronTimestamp) AS lastTimestamp
1717- FROM __ttl_7d_mv__v1
1818- WHERE
1919- monitorId = {{ String(monitorId, '1') }}
2020- GROUP BY region
2121-2222-