Skip to content

Commit 2b1c10d

Browse files
committed
perf chart
1 parent d758878 commit 2b1c10d

File tree

3 files changed

+448
-45
lines changed

3 files changed

+448
-45
lines changed

apps/api/src/query/builders/uptime.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ export const UptimeBuilders: Record<string, SimpleQueryConfig> = {
8181
avg(total_ms) as avg_response_time,
8282
quantile(0.50)(total_ms) as p50_response_time,
8383
quantile(0.95)(total_ms) as p95_response_time,
84-
max(total_ms) as max_response_time
84+
max(total_ms) as max_response_time,
85+
avg(ttfb_ms) as avg_ttfb,
86+
quantile(0.50)(ttfb_ms) as p50_ttfb,
87+
quantile(0.95)(ttfb_ms) as p95_ttfb
8588
FROM ${UPTIME_TABLE}
8689
WHERE
8790
site_id = {websiteId:String}

0 commit comments

Comments
 (0)