Skip to content

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

@hruthik46

Description

@hruthik46
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions