add dns types
This commit is contained in:
1 parent
6a8f97ae65
commit
0d72071019
2 files changed
+11
-1
No files matched your search
@@ -3,7 +3,7 @@ export type { CheckSnapshot } from "@/types/check.js";
|
|||||||
import type { GeoContinent, GroupedGeoCheck } from "@/types/geoCheck.js";
|
import type { GeoContinent, GroupedGeoCheck } from "@/types/geoCheck.js";
|
||||||
export type { GeoContinent } from "@/types/geoCheck.js";
|
export type { GeoContinent } from "@/types/geoCheck.js";
|
||||||
|
|
||||||
export const MonitorTypes = ["http", "ping", "pagespeed", "hardware", "docker", "port", "game", "grpc", "websocket", "unknown"] as const;
|
export const MonitorTypes = ["http", "ping", "pagespeed", "hardware", "docker", "port", "game", "grpc", "websocket", "dns", "unknown"] as const;
|
||||||
export type MonitorType = (typeof MonitorTypes)[number];
|
export type MonitorType = (typeof MonitorTypes)[number];
|
||||||
|
|
||||||
export const GeoCheckSupportedTypes: readonly MonitorType[] = ["http", "ping"] as const;
|
export const GeoCheckSupportedTypes: readonly MonitorType[] = ["http", "ping"] as const;
|
||||||
@@ -54,6 +54,8 @@ export interface Monitor {
|
|||||||
geoCheckEnabled?: boolean;
|
geoCheckEnabled?: boolean;
|
||||||
geoCheckLocations?: GeoContinent[];
|
geoCheckLocations?: GeoContinent[];
|
||||||
geoCheckInterval?: number;
|
geoCheckInterval?: number;
|
||||||
|
dnsServer?: string;
|
||||||
|
dnsRecordType?: string;
|
||||||
recentChecks: CheckSnapshot[];
|
recentChecks: CheckSnapshot[];
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
|
|||||||
@@ -116,6 +116,14 @@ export interface WebSocketStatusPayload {
|
|||||||
connected: boolean;
|
connected: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface DNSStatusPayload {
|
||||||
|
hostname: string;
|
||||||
|
dnsServer: string;
|
||||||
|
recordType: string;
|
||||||
|
resolved: boolean;
|
||||||
|
results: unknown;
|
||||||
|
}
|
||||||
|
|
||||||
export interface MonitorPayloadMap {
|
export interface MonitorPayloadMap {
|
||||||
ping: PingStatusPayload;
|
ping: PingStatusPayload;
|
||||||
http: HttpStatusPayload;
|
http: HttpStatusPayload;
|
||||||
|
|||||||
Reference in new issue
Block a user