/**
 * 监控配置
 */
export interface MonitoringConfig {
  id: string;
  name: string;
  type: 'CPU' | 'MEMORY' | 'DISK' | 'NETWORK' | 'SERVICE' | 'CUSTOM';
  threshold: number;
  description?: string;
  checkInterval?: number;
  alertEnabled?: boolean;
  alertThreshold?: number;
}

/**
 * 监控状态
 */
export interface MonitoringStatus {
  status: 'NORMAL' | 'ALERT' | 'ERROR' | 'UNKNOWN';
  lastChecked: Date;
  value: number;
  threshold: number;
}

/**
 * 告警状态
 */
export type AlertStatus = 'ACTIVE' | 'ACKNOWLEDGED' | 'RESOLVED' | 'ESCALATED';

/**
 * 告警
 */
export interface Alert {
  id: string;
  configId: string;
  severity: 'INFO' | 'WARNING' | 'ERROR' | 'CRITICAL';
  message: string;
  status: AlertStatus;
  created: Date;
  updated: Date;
}
