You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
611 B
Plaintext

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,
}
CPU :: struct {
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
}