apache / apache/cloudstack-go

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

未关闭
#135 1 条评论 0 个 reaction 已指派 0 人 已被 @Nehanth67 认领 在 GitHub 查看
主要语言
Go
星标
39
派生
47
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 cloudstack-go wrapper 中的 listClustersMetrics API 映射开始,并将其 response 字段处理方式与此处描述的 backend response 进行比较。确认主机指标是从 host 而不是 hostmetrics 读取的,然后运行相关的 SDK 测试或发起一个 listClustersMetrics 请求,以确认返回的指标不再是 null。已有一个开放的 pull request 处理此问题。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
api, backend, cloud
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。