Refactor: Separate data display by monitoring source

and Fix: Display data collection in detail page
This commit is contained in:
Tola Leng
2025-06-24 22:11:29 +07:00
parent 35b11f5a16
commit ab4f0aa6ea
15 changed files with 565 additions and 57 deletions
+11 -1
View File
@@ -1,4 +1,3 @@
export interface Service {
id: string;
name: string;
@@ -32,6 +31,10 @@ export interface Service {
headers?: string;
body?: string;
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
// Regional monitoring fields
region_name?: string;
agent_id?: string;
regional_monitoring_enabled?: boolean;
}
export interface CreateServiceParams {
@@ -45,6 +48,10 @@ export interface CreateServiceParams {
retries: number;
notificationChannel?: string;
alertTemplate?: string;
// Regional monitoring params
regionalMonitoringEnabled?: boolean;
regionName?: string;
agentId?: string;
}
export interface UptimeData {
@@ -60,6 +67,9 @@ export interface UptimeData {
updated?: string;
date?: string; // Keep for backward compatibility
uptime?: number; // Keep for backward compatibility
// Regional monitoring fields
region_name?: string;
agent_id?: string | number;
}
export interface PingData {