53 lines
2.5 KiB
Go
53 lines
2.5 KiB
Go
package slurm
|
|
|
|
type NodeResp struct {
|
|
Errors []struct {
|
|
Error string `json:"error"`
|
|
Errno int `json:"errno"`
|
|
} `json:"errors"`
|
|
Nodes []struct {
|
|
Architecture string `json:"architecture"`
|
|
BurstbufferNetworkAddress string `json:"burstbuffer_network_address"`
|
|
Boards int `json:"boards"`
|
|
BootTime int64 `json:"boot_time"`
|
|
Cores int `json:"cores"`
|
|
CpuBinding int `json:"cpu_binding"`
|
|
CpuLoad int `json:"cpu_load"`
|
|
FreeMemory int `json:"free_memory"`
|
|
Cpus int `json:"cpus"`
|
|
Features string `json:"features"`
|
|
ActiveFeatures string `json:"active_features"`
|
|
Gres string `json:"gres"`
|
|
GresDrained string `json:"gres_drained"`
|
|
GresUsed string `json:"gres_used"`
|
|
McsLabel string `json:"mcs_label"`
|
|
Name string `json:"name"`
|
|
NextStateAfterReboot string `json:"next_state_after_reboot"`
|
|
NextStateAfterRebootFlags []string `json:"next_state_after_reboot_flags"`
|
|
Address string `json:"address"`
|
|
Hostname string `json:"hostname"`
|
|
State string `json:"state"`
|
|
StateFlags []string `json:"state_flags"`
|
|
OperatingSystem string `json:"operating_system"`
|
|
Owner string `json:"owner"`
|
|
Partitions []string `json:"partitions"`
|
|
Port int `json:"port"`
|
|
RealMemory int `json:"real_memory"`
|
|
Reason string `json:"reason"`
|
|
ReasonChangedAt int `json:"reason_changed_at"`
|
|
ReasonSetByUser string `json:"reason_set_by_user"`
|
|
SlurmdStartTime int64 `json:"slurmd_start_time"`
|
|
Sockets int `json:"sockets"`
|
|
Threads int `json:"threads"`
|
|
TemporaryDisk int `json:"temporary_disk"`
|
|
Weight int `json:"weight"`
|
|
Tres string `json:"tres"`
|
|
TresUsed string `json:"tres_used"`
|
|
TresWeighted int `json:"tres_weighted"`
|
|
SlurmdVersion string `json:"slurmd_version"`
|
|
AllocCpus int `json:"alloc_cpus"`
|
|
IdleCpus int `json:"idle_cpus"`
|
|
AllocMemory int `json:"alloc_memory"`
|
|
} `json:"nodes"`
|
|
}
|