mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 21:01:40 +02:00
Introduce clusters query and type
This commit is contained in:
@@ -30,3 +30,15 @@ type JobTag struct {
|
||||
TagType string `db:"tag_type"`
|
||||
TagName string `db:"tag_name"`
|
||||
}
|
||||
|
||||
type Cluster struct {
|
||||
ClusterID string `json:"cluster_id"`
|
||||
ProcessorType string `json:"processor_type"`
|
||||
SocketsPerNode int `json:"sockets_per_node"`
|
||||
CoresPerSocket int `json:"cores_per_socket"`
|
||||
ThreadsPerCore int `json:"threads_per_core"`
|
||||
FlopRateScalar int `json:"flop_rate_scalar"`
|
||||
FlopRateSimd int `json:"flop_rate_simd"`
|
||||
MemoryBandwidth int `json:"memory_bandwidth"`
|
||||
MetricConfig []MetricConfig `json:"metric_config"`
|
||||
}
|
||||
|
@@ -91,6 +91,16 @@ type JobsStatistics struct {
|
||||
HistNumNodes []*HistoPoint `json:"histNumNodes"`
|
||||
}
|
||||
|
||||
type MetricConfig struct {
|
||||
Name string `json:"name"`
|
||||
Unit string `json:"unit"`
|
||||
Sampletime int `json:"sampletime"`
|
||||
Peak int `json:"peak"`
|
||||
Normal int `json:"normal"`
|
||||
Caution int `json:"caution"`
|
||||
Alert int `json:"alert"`
|
||||
}
|
||||
|
||||
type OrderByInput struct {
|
||||
Field string `json:"field"`
|
||||
Order *SortDirectionEnum `json:"order"`
|
||||
|
Reference in New Issue
Block a user