Title: Bug: listHostsMetrics response mapping mismatch (hostmetrics --> host) causes null parsing. · Issue #136 · apache/cloudstack-go · GitHub
Open Graph Title: Bug: listHostsMetrics response mapping mismatch (hostmetrics --> host) causes null parsing. · Issue #136 · apache/cloudstack-go
X Title: Bug: listHostsMetrics response mapping mismatch (hostmetrics --> host) causes null parsing. · Issue #136 · apache/cloudstack-go
Description: 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. ...
Open Graph Description: 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 r...
X Description: 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 r...
Opengraph URL: https://github.com/apache/cloudstack-go/issues/136
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: listHostsMetrics response mapping mismatch (hostmetrics --\u003e host) causes null parsing.","articleBody":"The CloudStack backend response for listHostsMetrics has changed its JSON structure, but the cloudstack-go wrapper is still parsing the old field (hostmetrics).\nThis results in host metrics being returned as null in the Go SDK response.\n\nAffected Component\n\nAPI: listHostsMetrics (command)\n\nClient: github.com/apache/cloudstack-go/v2\n\nVersion tested: v2.19.0 (and likely later)\n\nKey change:\nThe backend now returns metrics under the field host, not hostmetrics.\nGo SDK should correctly deserialize host metrics into a non-nil slice.\n\nActual SDK Behavior currently\n{\n \"count\": 3,\n \"host\": null\n}\n\nPlease rectify.\n\n\u003cimg width=\"308\" height=\"199\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4606c00d-2c6f-4d86-b65d-38038c34508b\" /\u003e","author":{"url":"https://github.com/Nehanth67","@type":"Person","name":"Nehanth67"},"datePublished":"2025-12-29T22:16:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/136/cloudstack-go/issues/136"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9dacdd12-3aa5-1069-576b-66fa75cb5551 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80F4:2EB4CD:35F772:4DDC33:6A4E6B75 |
| html-safe-nonce | 3e802a8b81b23947bf0f7c38737530c1910f10a96457d20bb92835e4f3c407ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEY0OjJFQjRDRDozNUY3NzI6NEREQzMzOjZBNEU2Qjc1IiwidmlzaXRvcl9pZCI6IjcyMDI3MDE5NTU3OTcyNDg4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7453d476865641ff108d62ce1b993c8be8284e0b8561b7a9d2dd6eed27073aa4 |
| hovercard-subject-tag | issue:3768446497 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack-go/136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbd32c1fe2ef3319a8a0e364f6c208f153c63f9efba9cf1ca2f233379b2ce150/apache/cloudstack-go/issues/136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbd32c1fe2ef3319a8a0e364f6c208f153c63f9efba9cf1ca2f233379b2ce150/apache/cloudstack-go/issues/136 |
| og:image:alt | 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 r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nehanth67 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack-go git https://github.com/apache/cloudstack-go.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 378986140 |
| octolytics-dimension-repository_nwo | apache/cloudstack-go |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 378986140 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack-go |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width