apache / apache/cloudstack-go

Bug: listHostsMetrics response mapping mismatch (clustermetrics -> cluster) causes null parsing

Open
#135 1 comment 0 reactions 0 assignees Claimed by @Nehanth67 View on GitHub
Dominant language
Go
Stars
39
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Image

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the listClustersMetrics API mapping in the cloudstack-go wrapper and compare its response field handling with the backend response described here. Verify that host metrics are read from host rather than hostmetrics, then run the relevant SDK tests or a listClustersMetrics request to confirm the returned metrics are no longer null. An open pull request already addresses this issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.