implement monitor filter

This commit is contained in:
Alex Holliday committed 2025-11-18 21:43:35 +00:00
1 parent a40277be4a
commit adbb4e7817
11 files changed
+276 -78

No files matched your search

+20 -1
View File
@@ -1,7 +1,26 @@
import type { GroupedCheck, ICheck } from "@/types/check";
import type { IMonitorStats } from "./monitorStats";
export type MonitorStatus = "up" | "down" | "initializing";
export const MonitorTypes = [
"http",
"https",
"ping",
"infrastructure",
"pagespeed",
] as const;
export type MonitorType = (typeof MonitorTypes)[number];
export const UptimeMonitorTypes = ["http", "https", "ping"] as const;
export type UptimeMonitorType = (typeof UptimeMonitorTypes)[number];
export const MonitorStatuses = [
"up",
"down",
"paused",
"initializing",
] as const;
export type MonitorStatus = (typeof MonitorStatuses)[number];
export interface IMonitor {
checks: ICheck[];