From 9b079c7a11c2f6d4287a57bdbeba958a3b336a12 Mon Sep 17 00:00:00 2001 From: Nehanth Date: Mon, 29 Dec 2025 17:28:39 -0500 Subject: [PATCH] changes fro metrics struct --- cloudstack/ClusterService.go | 2 +- cloudstack/HostService.go | 2 +- cloudstack/InfrastructureUsageService.go | 2 +- cloudstack/UsageService.go | 2 +- cloudstack/VolumeService.go | 2 +- cloudstack/ZoneService.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cloudstack/ClusterService.go b/cloudstack/ClusterService.go index 1e10470b..e16583d9 100644 --- a/cloudstack/ClusterService.go +++ b/cloudstack/ClusterService.go @@ -2686,7 +2686,7 @@ func (s *ClusterService) ListClustersMetrics(p *ListClustersMetricsParams) (*Lis type ListClustersMetricsResponse struct { Count int `json:"count"` - ClustersMetrics []*ClustersMetric `json:"clustersmetric"` + ClustersMetrics []*ClustersMetric `json:"cluster"` } type ClustersMetric struct { diff --git a/cloudstack/HostService.go b/cloudstack/HostService.go index 16f9009b..07cd9a81 100644 --- a/cloudstack/HostService.go +++ b/cloudstack/HostService.go @@ -4118,7 +4118,7 @@ func (s *HostService) ListHostsMetrics(p *ListHostsMetricsParams) (*ListHostsMet type ListHostsMetricsResponse struct { Count int `json:"count"` - HostsMetrics []*HostsMetric `json:"hostsmetric"` + HostsMetrics []*HostsMetric `json:"host"` } type HostsMetric struct { diff --git a/cloudstack/InfrastructureUsageService.go b/cloudstack/InfrastructureUsageService.go index 6a3812d9..6f6e1887 100644 --- a/cloudstack/InfrastructureUsageService.go +++ b/cloudstack/InfrastructureUsageService.go @@ -65,7 +65,7 @@ func (s *InfrastructureUsageService) ListDbMetrics(p *ListDbMetricsParams) (*Lis } type ListDbMetricsResponse struct { - DbMetrics DbMetric `json:"dbMetrics"` + DbMetrics DbMetric `json:"db"` } type DbMetric struct { diff --git a/cloudstack/UsageService.go b/cloudstack/UsageService.go index ef89ced3..256319d5 100644 --- a/cloudstack/UsageService.go +++ b/cloudstack/UsageService.go @@ -2129,7 +2129,7 @@ func (s *UsageService) ListUsageServerMetrics(p *ListUsageServerMetricsParams) ( type ListUsageServerMetricsResponse struct { Count int `json:"count"` - UsageServerMetrics []*UsageServerMetric `json:"usageservermetric"` + UsageServerMetrics []*UsageServerMetric `json:"usageserver"` } type UsageServerMetric struct { diff --git a/cloudstack/VolumeService.go b/cloudstack/VolumeService.go index c9158aa5..cb85b7a3 100644 --- a/cloudstack/VolumeService.go +++ b/cloudstack/VolumeService.go @@ -4466,7 +4466,7 @@ func (s *VolumeService) ListVolumesMetrics(p *ListVolumesMetricsParams) (*ListVo type ListVolumesMetricsResponse struct { Count int `json:"count"` - VolumesMetrics []*VolumesMetric `json:"volumesmetric"` + VolumesMetrics []*VolumesMetric `json:"volume"` } type VolumesMetric struct { diff --git a/cloudstack/ZoneService.go b/cloudstack/ZoneService.go index 8ae1e103..7da52ced 100644 --- a/cloudstack/ZoneService.go +++ b/cloudstack/ZoneService.go @@ -3076,7 +3076,7 @@ func (s *ZoneService) ListZonesMetrics(p *ListZonesMetricsParams) (*ListZonesMet type ListZonesMetricsResponse struct { Count int `json:"count"` - ZonesMetrics []*ZonesMetric `json:"zonesmetric"` + ZonesMetrics []*ZonesMetric `json:"zone"` } type ZonesMetric struct {