Bug: listHostsMetrics response mapping mismatch (hostmetrics --> host) causes null parsing.
- Langage dominant
- Go
- Étoiles
- 39
- Forks
- 47
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
The CloudStack backend response for listHostsMetrics 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.
Affected Component
API: listHostsMetrics (command)
Client: github.com/apache/cloudstack-go/v2
Version tested: v2.19.0 (and likely later)
Key change:
The backend now returns metrics under the field host, not hostmetrics.
Go SDK should correctly deserialize host metrics into a non-nil slice.
Actual SDK Behavior currently
{
"count": 3,
"host": null
}
Please rectify.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by inspecting the cloudstack-go v2 wrapper for the listHostsMetrics API and its response mapping. Confirm the mapping against the backend field described in the issue, then verify that the SDK returns a non-nil host metrics slice; linked pull request #137 indicates that work is already underway.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 25/100