// Mock data for Sites

export const sites = [
  {
    id: 'site-001',
    name: 'production-app',
    container_name: 'prod-app-001',
    status: 'running',
    ip_address: '10.100.1.10',
    image: 'frappe-base:v3.2.1',
    owner: 'admin@example.com',
    created: '2024-01-15',
    uptime: '45d 12h 30m',
    cpu_usage: 35,
    ram_usage: 62,
    disk_usage: 45,
    connections: 127,
  },
  {
    id: 'site-002',
    name: 'staging-app',
    container_name: 'staging-app-001',
    status: 'running',
    ip_address: '10.100.1.11',
    image: 'frappe-base:v3.2.1',
    owner: 'developer@example.com',
    created: '2024-02-20',
    uptime: '12d 5h 15m',
    cpu_usage: 15,
    ram_usage: 38,
    disk_usage: 22,
    connections: 23,
  },
  {
    id: 'site-003',
    name: 'test-environment',
    container_name: 'test-env-001',
    status: 'stopped',
    ip_address: '10.100.1.12',
    image: 'frappe-base:v3.1.0',
    owner: 'qa@example.com',
    created: '2024-03-01',
    uptime: '0d 0h 0m',
    cpu_usage: 0,
    ram_usage: 0,
    disk_usage: 18,
    connections: 0,
  },
  {
    id: 'site-004',
    name: 'client-demo',
    container_name: 'client-demo-001',
    status: 'running',
    ip_address: '10.100.1.13',
    image: 'frappe-base:v3.2.1',
    owner: 'sales@example.com',
    created: '2024-03-10',
    uptime: '5d 8h 45m',
    cpu_usage: 8,
    ram_usage: 25,
    disk_usage: 12,
    connections: 5,
  },
  {
    id: 'site-005',
    name: 'analytics-service',
    container_name: 'analytics-001',
    status: 'error',
    ip_address: '10.100.1.14',
    image: 'frappe-base:v3.2.0',
    owner: 'admin@example.com',
    created: '2024-01-20',
    uptime: '0d 0h 0m',
    cpu_usage: 0,
    ram_usage: 0,
    disk_usage: 55,
    connections: 0,
  },
]

export const siteActivity = [
  {
    id: 1,
    type: 'start',
    message: 'Container started',
    timestamp: '2024-03-15 10:30:00',
    user: 'admin@example.com',
  },
  {
    id: 2,
    type: 'backup',
    message: 'Backup created successfully',
    timestamp: '2024-03-15 02:00:00',
    user: 'system',
  },
  {
    id: 3,
    type: 'update',
    message: 'Image updated to v3.2.1',
    timestamp: '2024-03-14 15:45:00',
    user: 'admin@example.com',
  },
  {
    id: 4,
    type: 'restart',
    message: 'Container restarted',
    timestamp: '2024-03-14 15:40:00',
    user: 'admin@example.com',
  },
  {
    id: 5,
    type: 'config',
    message: 'Configuration updated',
    timestamp: '2024-03-13 09:20:00',
    user: 'developer@example.com',
  },
]

export const siteBackups = [
  {
    id: 'backup-001',
    name: 'auto-backup-20240315',
    size: '2.4 GB',
    created: '2024-03-15 02:00:00',
    type: 'automatic',
    status: 'completed',
  },
  {
    id: 'backup-002',
    name: 'auto-backup-20240314',
    size: '2.3 GB',
    created: '2024-03-14 02:00:00',
    type: 'automatic',
    status: 'completed',
  },
  {
    id: 'backup-003',
    name: 'manual-backup-pre-update',
    size: '2.3 GB',
    created: '2024-03-14 15:30:00',
    type: 'manual',
    status: 'completed',
  },
  {
    id: 'backup-004',
    name: 'auto-backup-20240313',
    size: '2.2 GB',
    created: '2024-03-13 02:00:00',
    type: 'automatic',
    status: 'completed',
  },
]

export const siteLogs = [
  {
    timestamp: '2024-03-15 10:35:22',
    level: 'info',
    message: 'Worker process started with PID 1234',
  },
  {
    timestamp: '2024-03-15 10:35:20',
    level: 'info',
    message: 'Gunicorn server started on 0.0.0.0:8000',
  },
  {
    timestamp: '2024-03-15 10:35:15',
    level: 'info',
    message: 'Database connection established',
  },
  {
    timestamp: '2024-03-15 10:35:10',
    level: 'warning',
    message: 'Redis connection pool size set to default (10)',
  },
  {
    timestamp: '2024-03-15 10:35:05',
    level: 'info',
    message: 'Starting Frappe application...',
  },
  {
    timestamp: '2024-03-15 10:30:00',
    level: 'info',
    message: 'Container started successfully',
  },
  {
    timestamp: '2024-03-14 23:45:12',
    level: 'error',
    message: 'Background job failed: ImportError in module scheduler',
  },
  {
    timestamp: '2024-03-14 23:40:00',
    level: 'info',
    message: 'Scheduled backup completed',
  },
]
