refactor monitor stats

This commit is contained in:
Alex Holliday committed 2026-01-05 19:45:30 +00:00
1 parent 36cdb20dfc
commit 7aae57e9ab
13 files changed
+189 -53

No files matched your search

@@ -2,6 +2,7 @@ import mongoose, { Schema } from "mongoose";
import { MonitorStatus, MonitorStatuses } from "@/types/domain/index.js";
export interface IMonitorStats extends mongoose.Document {
_id: mongoose.Types.ObjectId;
monitorId: mongoose.Types.ObjectId;
avgResponseTime: number;
maxResponseTime: number;