Nehanth67 opened a new issue, #136:
URL: https://github.com/apache/cloudstack-go/issues/136
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.
<img width="308" height="199" alt="Image"
src="https://github.com/user-attachments/assets/4606c00d-2c6f-4d86-b65d-38038c34508b"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]