Change footprint variabel from bool to string

The footprint variable also indicates the type of statistic used now
This commit is contained in:
2024-07-20 08:59:07 +02:00
parent b6f011c669
commit 721b6b2afa
7 changed files with 29 additions and 29 deletions

View File

@@ -51,7 +51,7 @@ type SubClusterConfig struct {
Normal float64 `json:"normal"`
Caution float64 `json:"caution"`
Alert float64 `json:"alert"`
Footprint bool `json:"footprint"`
Footprint string `json:"footprint,omitempty"`
Remove bool `json:"remove"`
LowerIsBetter bool `json:"lowerIsBetter"`
Energy bool `json:"energy"`
@@ -69,7 +69,7 @@ type MetricConfig struct {
Caution float64 `json:"caution"`
Alert float64 `json:"alert"`
LowerIsBetter bool `json:"lowerIsBetter"`
Footprint bool `json:"footprint"`
Footprint string `json:"footprint,omitempty"`
Energy bool `json:"energy"`
}
@@ -88,7 +88,7 @@ type GlobalMetricListItem struct {
Name string `json:"name"`
Unit Unit `json:"unit"`
Scope MetricScope `json:"scope"`
Footprint bool `json:"footprint"`
Footprint string `json:"footprint,omitempty"`
Availability []ClusterSupport `json:"availability"`
}