Skip to content

Commit 42db23c

Browse files
committed
Add restrict attribute to GlobalMetricListItem
1 parent a3770f6 commit 42db23c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

schema/cluster.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ type ClusterSupport struct {
116116
// GlobalMetricListItem represents a metric in the global metric catalog.
117117
// Tracks which clusters and subclusters support this metric across the entire system.
118118
type GlobalMetricListItem struct {
119-
Name string `json:"name"` // Metric name
120-
Unit Unit `json:"unit"` // Unit of measurement
121-
Scope MetricScope `json:"scope"` // Metric scope level
122-
Footprint string `json:"footprint,omitempty"` // Footprint category
123-
Availability []ClusterSupport `json:"availability"` // Where this metric is available
119+
Name string `json:"name"` // Metric name
120+
Unit Unit `json:"unit"` // Unit of measurement
121+
Scope MetricScope `json:"scope"` // Metric scope level
122+
Footprint string `json:"footprint,omitempty"` // Footprint category
123+
Restrict bool
124+
Availability []ClusterSupport `json:"availability"` // Where this metric is available
124125
}
125126

126127
// GetSocketsFromHWThreads returns socket IDs that contain any of the given hardware threads.

0 commit comments

Comments
 (0)