udpate monitor types to include DNS, add dnsRecordType

This commit is contained in:
Alex committed 2026-05-11 09:59:53 -07:00
1 parent c9b9c4a53f
commit 9a004ab1fb
1 file changed
+6
+6
View File
@@ -15,10 +15,14 @@ export const MonitorTypes = [
"game", "game",
"grpc", "grpc",
"websocket", "websocket",
"dns",
"unknown", "unknown",
] as const; ] as const;
export type MonitorType = (typeof MonitorTypes)[number]; 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 GeoCheckSupportedTypes: readonly MonitorType[] = ["http", "ping"] as const;
export const supportsGeoCheck = (type: MonitorType | undefined): boolean => { export const supportsGeoCheck = (type: MonitorType | undefined): boolean => {
@@ -78,6 +82,8 @@ export interface Monitor {
geoCheckEnabled?: boolean; geoCheckEnabled?: boolean;
geoCheckLocations?: GeoContinent[]; geoCheckLocations?: GeoContinent[];
geoCheckInterval?: number; geoCheckInterval?: number;
dnsServer?: string;
dnsRecordType?: DnsRecordType;
recentChecks: CheckSnapshot[]; recentChecks: CheckSnapshot[];
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;