Introduce clusters query and type

This commit is contained in:
Lou Knauer
2021-04-22 15:00:54 +02:00
parent 3004e2909a
commit 365b1a2066
7 changed files with 1063 additions and 2 deletions

View File

@@ -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"`
}

View File

@@ -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"`