Bug: listHostsMetrics response mapping mismatch (clustermetrics -> cluster) causes null parsing
- Lingua principale
- Go
- Stelle
- 39
- Fork
- 47
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The CloudStack backend response for listClustersMetrics "command" has changed its JSON structure, but the cloudstack-go wrapper is still parsing the old field (hostmetrics).
This results in host metrics being returned as null in the Go SDK response.
API: listClustersMetrics (command)
Client: github.com/apache/cloudstack-go/v2
Key change:
The backend now returns metrics under the field host, not hostmetrics.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia con il mapping dell’API listClustersMetrics nel wrapper cloudstack-go e confronta la gestione dei campi della risposta con la risposta del backend descritta qui. Verifica che le metriche dell’host vengano lette da host anziché da hostmetrics, quindi esegui i test rilevanti dell’SDK o una richiesta listClustersMetrics per confermare che le metriche restituite non siano più null. Una pull request aperta risolve già questo problema.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- api, backend, cloud
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 25/100