Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions schema/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type MetricConfig struct {
Scope MetricScope `json:"scope"` // Metric scope (node, socket, core, etc.)
Aggregation string `json:"aggregation"` // Aggregation function (avg, sum, min, max)
Footprint string `json:"footprint,omitempty"` // Footprint category
Tooltip string `json:"tooltip,omitempty"` // Tooltip text shown in frontend if defined
SubClusters []*SubClusterConfig `json:"subClusters,omitempty"` // Subcluster-specific overrides
Timestep int `json:"timestep"` // Measurement interval in seconds
Restrict bool `json:"restrict"` // Restrict visibility to non user roles
Expand Down Expand Up @@ -128,6 +129,7 @@ type GlobalMetricListItem struct {
Unit Unit `json:"unit"` // Unit of measurement
Scope MetricScope `json:"scope"` // Metric scope level
Footprint string `json:"footprint,omitempty"` // Footprint category
Tooltip string `json:"tooltip,omitempty"` // Tooltip text shown in frontend if defined
Availability []ClusterSupport `json:"availability"` // Where this metric is available
}

Expand Down
4 changes: 4 additions & 0 deletions schema/schemas/cluster.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"min"
]
},
"tooltip": {
"description": "Shortly describes the metric",
"type": "string"
},
"energy": {
"description": "Is it used to calculate job energy",
"type": "string",
Expand Down
Loading