// Mock data for Logs

export const logTypes = [
  { id: 'container', label: 'logs.containerLogs', icon: 'server' },
  { id: 'system', label: 'logs.systemLogs', icon: 'cpu' },
  { id: 'webserver', label: 'logs.webServerLogs', icon: 'globe' },
  { id: 'apps', label: 'logs.appsLogs', icon: 'package' },
  { id: 'admin', label: 'logs.adminPanelLogs', icon: 'shield' },
  { id: 'billing', label: 'logs.billingLogs', icon: 'credit-card' },
  { id: 'users', label: 'logs.usersLogs', icon: 'users' },
  { id: 'sites', label: 'logs.sitesLogs', icon: 'layers' },
]

export const containerLogs = [
  {
    timestamp: '2024-03-15 14:32:15',
    level: 'info',
    container: 'prod-app-001',
    message: 'Health check passed',
  },
  {
    timestamp: '2024-03-15 14:31:00',
    level: 'info',
    container: 'staging-app-001',
    message: 'New connection from 192.168.1.100',
  },
  {
    timestamp: '2024-03-15 14:30:45',
    level: 'warning',
    container: 'prod-app-001',
    message: 'High memory usage detected: 85%',
  },
  {
    timestamp: '2024-03-15 14:29:20',
    level: 'error',
    container: 'analytics-001',
    message: 'Container failed to start: OCI runtime error',
  },
  {
    timestamp: '2024-03-15 14:28:00',
    level: 'info',
    container: 'client-demo-001',
    message: 'Container started successfully',
  },
]

export const systemLogs = [
  {
    timestamp: '2024-03-15 14:35:00',
    level: 'info',
    source: 'incusd',
    message: 'Cluster heartbeat successful',
  },
  {
    timestamp: '2024-03-15 14:34:30',
    level: 'info',
    source: 'kernel',
    message: 'Memory reclaim completed, freed 512MB',
  },
  {
    timestamp: '2024-03-15 14:33:15',
    level: 'warning',
    source: 'storage',
    message: 'Pool usage at 75%, consider expansion',
  },
  {
    timestamp: '2024-03-15 14:32:00',
    level: 'info',
    source: 'network',
    message: 'Bridge br0 link up',
  },
]

export const webServerLogs = [
  {
    timestamp: '2024-03-15 14:35:22',
    level: 'info',
    message: 'GET /api/v1/sites 200 45ms',
  },
  {
    timestamp: '2024-03-15 14:35:20',
    level: 'info',
    message: 'POST /api/v1/sites/site-001/start 200 1250ms',
  },
  {
    timestamp: '2024-03-15 14:35:15',
    level: 'warning',
    message: 'Rate limit approached for IP 192.168.1.50',
  },
  {
    timestamp: '2024-03-15 14:35:10',
    level: 'error',
    message: 'POST /api/v1/sites/site-005/start 500 Internal Server Error',
  },
]

export const adminPanelLogs = [
  {
    timestamp: '2024-03-15 14:30:00',
    level: 'info',
    user: 'admin@example.com',
    action: 'LOGIN',
    message: 'User logged in successfully',
  },
  {
    timestamp: '2024-03-15 14:25:00',
    level: 'info',
    user: 'admin@example.com',
    action: 'START_CONTAINER',
    message: 'Started container client-demo-001',
  },
  {
    timestamp: '2024-03-15 14:20:00',
    level: 'warning',
    user: 'developer@example.com',
    action: 'DELETE_ATTEMPT',
    message: 'Attempted to delete production container (blocked)',
  },
]

export const billingLogs = [
  {
    timestamp: '2024-03-15 10:00:00',
    level: 'info',
    customer: 'Acme Corporation',
    action: 'PAYMENT_RECEIVED',
    amount: 42500,
  },
  {
    timestamp: '2024-03-15 09:30:00',
    level: 'warning',
    customer: 'Startup Labs',
    action: 'PAYMENT_FAILED',
    message: 'Card declined',
  },
  {
    timestamp: '2024-03-14 15:00:00',
    level: 'info',
    customer: 'SmallBiz Inc',
    action: 'ACCOUNT_FROZEN',
    message: 'Auto-frozen due to 60 days overdue',
  },
]

export const usersLogs = [
  {
    timestamp: '2024-03-15 14:30:00',
    level: 'info',
    user: 'admin@example.com',
    action: 'LOGIN',
    ip: '192.168.1.100',
  },
  {
    timestamp: '2024-03-15 12:15:00',
    level: 'info',
    user: 'developer@example.com',
    action: 'PASSWORD_CHANGE',
    ip: '192.168.1.105',
  },
  {
    timestamp: '2024-03-15 10:00:00',
    level: 'warning',
    user: 'unknown@hacker.com',
    action: 'LOGIN_FAILED',
    ip: '203.0.113.50',
    message: 'Invalid credentials (5 attempts)',
  },
]

export const sitesLogs = [
  {
    timestamp: '2024-03-15 14:28:00',
    level: 'info',
    site: 'client-demo-001',
    action: 'START',
    user: 'admin@example.com',
  },
  {
    timestamp: '2024-03-15 14:00:00',
    level: 'info',
    site: 'prod-app-001',
    action: 'BACKUP_CREATED',
    user: 'system',
  },
  {
    timestamp: '2024-03-15 13:45:00',
    level: 'info',
    site: 'staging-app-001',
    action: 'CONFIG_UPDATE',
    user: 'developer@example.com',
  },
]
