Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

uptime chart: count -> avgResponseTime

Blue Mouse2e4047a8e8c1
diff --git a/apps/production/src/analytics/analytics.service.ts b/apps/production/src/analytics/analytics.service.ts
index c5057fc69..b4d008ee0 100644
--- a/apps/production/src/analytics/analytics.service.ts
+++ b/apps/production/src/analytics/analytics.service.ts
@@ -3056,12 +3056,11 @@ export class AnalyticsService {
})
// TODO: TYPE
.then(resultSet => resultSet.json<any>())
- const { count } = this.extractUptimeChartData(data, x)
+ const { avgResponseTime } = this.extractUptimeChartData(data, x)
chart = {
- // todo: other stuff
x: this.shiftToTimezone(x, safeTimezone, format),
- count,
+ avgResponseTime,
}
})(),
]