Update dependencies. Rebuild graphql and swagger

This commit is contained in:
2026-01-15 08:32:06 +01:00
parent 8f0bb907ff
commit e1efc68476
24 changed files with 3321 additions and 555 deletions

View File

@@ -108,7 +108,7 @@ func initClusterConfig() error {
}
availability.SubClusters = append(availability.SubClusters, sc.Name)
sc.MetricConfig = append(sc.MetricConfig, *newMetric)
sc.MetricConfig = append(sc.MetricConfig, newMetric)
if newMetric.Footprint != "" {
sc.Footprint = append(sc.Footprint, newMetric.Name)
@@ -282,7 +282,7 @@ func GetSubClusterByNode(cluster, hostname string) (string, error) {
return "", fmt.Errorf("ARCHIVE/CLUSTERCONFIG > no subcluster found for cluster %v and host %v", cluster, hostname)
}
func MetricIndex(mc []schema.MetricConfig, name string) (int, error) {
func MetricIndex(mc []*schema.MetricConfig, name string) (int, error) {
for i, m := range mc {
if m.Name == name {
return i, nil