export interface AlertRule {
  id: string;
  name: string;
  description: string;
  metric: string;
  condition: 'gt' | 'lt' | 'gte' | 'lte' | 'eq';
  threshold: number;
  duration: string;
  severity: 'info' | 'warning' | 'critical';
  enabled: boolean;
  targetServers: string[];
  createdAt: string;
  updatedAt: string;
}

export interface AlertEvent {
  id: string;
  ruleId: string;
  ruleName: string;
  serverId: string;
  serverName: string;
  severity: 'info' | 'warning' | 'critical';
  status: 'firing' | 'resolved' | 'acknowledged';
  message: string;
  value: number;
  firedAt: string;
  resolvedAt?: string;
}
