mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 21:01:40 +02:00
Add ressource ounts to node table
This commit is contained in:
@@ -24,12 +24,18 @@ const (
|
||||
)
|
||||
|
||||
type Node struct {
|
||||
ID int64 `json:"id" db:"id"`
|
||||
Hostname string `json:"hostname" db:"hostname" example:"fritz"`
|
||||
Cluster string `json:"cluster" db:"cluster" example:"fritz"`
|
||||
SubCluster string `json:"subCluster" db:"subcluster" example:"main"`
|
||||
NodeState NodeState `json:"nodeState" db:"node_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"`
|
||||
HealthState MonitoringState `json:"healthState" db:"health_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"`
|
||||
RawMetaData []byte `json:"-" db:"meta_data"`
|
||||
MetaData map[string]string `json:"metaData"`
|
||||
ID int64 `json:"id" db:"id"`
|
||||
Hostname string `json:"hostname" db:"hostname" example:"fritz"`
|
||||
Cluster string `json:"cluster" db:"cluster" example:"fritz"`
|
||||
SubCluster string `json:"subCluster" db:"subcluster" example:"main"`
|
||||
NodeState NodeState `json:"nodeState" db:"node_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"`
|
||||
HealthState MonitoringState `json:"healthState" db:"health_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"`
|
||||
CpusAllocated int `json:"cpusAllocated" db:"cpus_allocated"`
|
||||
CpusTotal int `json:"cpusTotal" db:"cpus_total"`
|
||||
MemoryAllocated int `json:"memoryAllocated" db:"memory_allocated"`
|
||||
MemoryTotal int `json:"memoryTotal" db:"memory_total"`
|
||||
GpusAllocated int `json:"gpusAllocated" db:"gpus_allocated"`
|
||||
GpusTotal int `json:"gpusTotal" db:"gpus_total"`
|
||||
RawMetaData []byte `json:"-" db:"meta_data"`
|
||||
MetaData map[string]string `json:"metaData"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user