From 9a004ab1fb5faeb652b74a69f5bf7d1f1caff200 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 11 May 2026 09:59:53 -0700 Subject: [PATCH] udpate monitor types to include DNS, add dnsRecordType --- client/src/Types/Monitor.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/Types/Monitor.ts b/client/src/Types/Monitor.ts index 3dced0a6c..a4317e1ff 100644 --- a/client/src/Types/Monitor.ts +++ b/client/src/Types/Monitor.ts @@ -15,10 +15,14 @@ export const MonitorTypes = [ "game", "grpc", "websocket", + "dns", "unknown", ] as const; export type MonitorType = (typeof MonitorTypes)[number]; +export const DnsRecordTypes = ["A", "AAAA", "CNAME", "MX", "TXT", "NS"] as const; +export type DnsRecordType = (typeof DnsRecordTypes)[number]; + export const GeoCheckSupportedTypes: readonly MonitorType[] = ["http", "ping"] as const; export const supportsGeoCheck = (type: MonitorType | undefined): boolean => { @@ -78,6 +82,8 @@ export interface Monitor { geoCheckEnabled?: boolean; geoCheckLocations?: GeoContinent[]; geoCheckInterval?: number; + dnsServer?: string; + dnsRecordType?: DnsRecordType; recentChecks: CheckSnapshot[]; createdAt: string; updatedAt: string;