export interface AgentHealth {
  id: string
  name: string
  appId: string
  service: string
  version: string
  tps: number
  lastSeen: string
  status: 'live' | 'stale' | 'dead'
  errorRate?: string
  uptime: string
  memoryUsagePct: number
  cpuUsagePct: number
  activeRoutes: number
  totalRoutes: number
}

export const agents: AgentHealth[] = [
  // order-service: 3 instances, all live
  {
    id: 'ord-1', name: 'ord-1', appId: 'order-service', service: 'order-service', version: 'v3.2.1',
    tps: 14.2, lastSeen: '12s ago', status: 'live', uptime: '14d 6h',
    memoryUsagePct: 62, cpuUsagePct: 24, activeRoutes: 3, totalRoutes: 3,
  },
  {
    id: 'ord-2', name: 'ord-2', appId: 'order-service', service: 'order-service', version: 'v3.2.1',
    tps: 11.8, lastSeen: '8s ago', status: 'live', errorRate: '3 err/h', uptime: '14d 6h',
    memoryUsagePct: 71, cpuUsagePct: 31, activeRoutes: 3, totalRoutes: 3,
  },
  {
    id: 'ord-3', name: 'ord-3', appId: 'order-service', service: 'order-service', version: 'v3.2.1',
    tps: 8.4, lastSeen: '4s ago', status: 'live', uptime: '2h 15m',
    memoryUsagePct: 38, cpuUsagePct: 12, activeRoutes: 3, totalRoutes: 3,
  },
  // payment-svc: 2 instances, one stale
  {
    id: 'pay-1', name: 'pay-1', appId: 'payment-svc', service: 'payment-svc', version: 'v3.2.1',
    tps: 9.7, lastSeen: '6s ago', status: 'live', uptime: '14d 6h',
    memoryUsagePct: 58, cpuUsagePct: 22, activeRoutes: 2, totalRoutes: 2,
  },
  {
    id: 'pay-2', name: 'pay-2', appId: 'payment-svc', service: 'payment-svc', version: 'v3.2.1',
    tps: 0.3, lastSeen: '3m ago', status: 'stale', errorRate: '12 err/h', uptime: '14d 6h',
    memoryUsagePct: 82, cpuUsagePct: 67, activeRoutes: 1, totalRoutes: 2,
  },
  // shipment-svc: 2 instances, both live
  {
    id: 'ship-1', name: 'ship-1', appId: 'shipment-svc', service: 'shipment-svc', version: 'v3.2.0',
    tps: 12.1, lastSeen: '5s ago', status: 'live', uptime: '7d 14h',
    memoryUsagePct: 55, cpuUsagePct: 19, activeRoutes: 2, totalRoutes: 2,
  },
  {
    id: 'ship-2', name: 'ship-2', appId: 'shipment-svc', service: 'shipment-svc', version: 'v3.2.0',
    tps: 9.1, lastSeen: '3s ago', status: 'live', uptime: '7d 14h',
    memoryUsagePct: 48, cpuUsagePct: 15, activeRoutes: 2, totalRoutes: 2,
  },
  // notification-hub: 1 instance, DEAD
  {
    id: 'notif-1', name: 'notif-1', appId: 'notification-hub', service: 'notification-hub', version: 'v3.1.9',
    tps: 0, lastSeen: '47m ago', status: 'dead', errorRate: '0 err/h', uptime: '0',
    memoryUsagePct: 0, cpuUsagePct: 0, activeRoutes: 0, totalRoutes: 1,
  },
]
