jmsperu commented on issue #135:
URL: https://github.com/apache/cloudstack-go/issues/135#issuecomment-4757312267

   This is the `listClustersMetrics` counterpart of #136: the response struct 
used the stale json tag (`clustersmetric`) while the backend returns the list 
under `cluster`, so the slice deserialized to nil.
   
   PR #137 fixes exactly this (`ClustersMetrics []*ClustersMetric 
json:"clustersmetric"` → `json:"cluster"`). I confirmed the key against a live 
CloudStack **4.22** deployment — `listClustersMetrics` returns its list under 
the top-level key `cluster` — so that change is correct. Once #137 merges (it 
needs two unrelated corrections I flagged there for `db`/`usageserver`, but the 
cluster/host changes are good), this is resolved.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to