package main import "core:log" Log_Level_Map := map[string]log.Level { "DEBUG" = log.Level.Debug, "INFO" = log.Level.Info, "WARNING" = log.Level.Warning, "ERROR" = log.Level.Error, "FATAL" = log.Level.Fatal, } Program_Config :: struct { log_level: log.Level, api_address: string, host_id: int, hostname: string, } CPU :: struct { id: int, name: string, socket: int, usage: f16, } Memory :: struct { type: string, // physical/virtual total: int, used: int, usage: f16, } Host :: struct { hostname: string, host_id: int, cpus: [dynamic]CPU, memory: [dynamic]Memory, } Base_Host :: struct { hostname: string } Base_CPU :: struct { name: string, socket: int, host_id: int }