export type HealthStatus = 'healthy' | 'degraded' | 'unhealthy' | 'offline' | 'unknown'; export interface ServiceHealth { name: string; status: HealthStatus; latency: number; uptime: number; lastChecked?: string; error?: string; } export interface AgentHealth { id: string; name: string; status: HealthStatus; lastHeartbeat: string | null; cpuUsage: number; memoryUsage: number; diskUsage?: number; networkLatency?: number; } export interface ConnectionHealth { id: string; name: string; type: 'ssh' | 'portforward'; status: HealthStatus; lastConnected: string | null; error?: string; } export interface OverallHealth { overall: HealthStatus; lastChecked: string; services: ServiceHealth[]; agents: AgentHealth[]; connections: ConnectionHealth[]; } export interface HealthMetric { name: string; value: number; unit: string; threshold?: { warning: number; critical: number; }; status: HealthStatus; } export interface HealthHistoryPoint { timestamp: string; status: HealthStatus; metrics?: Record; }