Add docker type to getMonitorStatsById

This commit is contained in:
Alex Holliday committed 2024-11-13 15:37:40 +08:00
1 parent 20d84e0a18
commit 9db3e0e6df
1 file changed
+1 -1
+1 -1
View File
@@ -350,7 +350,7 @@ const getMonitorStatsById = async (req) => {
),
};
if (monitor.type === "http" || monitor.type === "ping") {
if (monitor.type === "http" || monitor.type === "ping" || monitor.type === "docker") {
// HTTP/PING Specific stats
monitorStats.periodAvgResponseTime = getAverageResponseTime(checksForDateRange);
monitorStats.periodUptime = getUptimePercentage(checksForDateRange);