import api from './index'

export interface SystemStatus {
  cpu_percent: number
  memory_percent: number
  disk_percent: number
  disk_used_gb: number
  disk_total_gb: number
  network_upload_bps: number
  network_download_bps: number
  system_name: string
  system_version: string
  hostname: string
  uptime_seconds: number
  gpu_name: string | null
  gpu_memory_total_mb: number | null
  gpu_memory_used_mb: number | null
  gpu_util_percent: number | null
  timestamp: string
}

export const systemApi = {
  getStatus() {
    return api.get<SystemStatus>('/api/system/status')
  },
}
