Initial Release

This commit is contained in:
Tola Leng
2025-05-09 21:28:07 +07:00
commit 0c6cd18e6f
244 changed files with 50633 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
export interface Service {
id: string;
name: string;
url: string;
type: "HTTP" | "HTTPS" | "TCP" | "DNS" | "PING" | "HTTP" | "http" | "https" | "tcp" | "dns" | "ping" | "smtp" | "icmp";
status: "up" | "down" | "paused" | "pending" | "warning";
responseTime: number;
uptime: number;
lastChecked: string;
interval: number;
retries: number;
notificationChannel?: string;
alertTemplate?: string;
muteAlerts?: boolean; // Keep this to avoid breaking existing code
alerts?: "muted" | "unmuted"; // Make sure alerts is properly typed as union
muteChangedAt?: string;
}
export interface CreateServiceParams {
name: string;
url: string;
type: string;
interval: number;
retries: number;
notificationChannel?: string;
alertTemplate?: string;
}
export interface UptimeData {
date?: string;
uptime?: number;
id?: string;
serviceId?: string;
timestamp: string;
status: "up" | "down" | "paused" | "pending" | "warning";
responseTime: number;
}