Bug: listHostsMetrics response mapping mismatch (hostmetrics --> host) causes null parsing.
- 主要語言
- Go
- 星號
- 39
- 分支
- 47
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先檢查用於 listHostsMetrics API 的 cloudstack-go v2 wrapper 及其回應對映。根據 issue 中描述的後端欄位確認該對映,接著驗證 SDK 回傳的 host metrics slice 是否為非 nil;關聯的 pull request #137 表示相關工作已經在進行中。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- go
- 領域
- api
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100