From 0ea317066fc6301222ebadb162dbcde7d830cdf8 Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Tue, 12 Dec 2023 15:46:38 +0100 Subject: [PATCH] Convert OpenSearch and ElastiCache vCPU and Memory to numeric types --- elsaticache_instance_data.go | 4 ++-- opensearch_instance_data.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/elsaticache_instance_data.go b/elsaticache_instance_data.go index 272cad2..355cc72 100644 --- a/elsaticache_instance_data.go +++ b/elsaticache_instance_data.go @@ -41,8 +41,8 @@ type ElastiCacheInstance struct { InstanceType string `json:"instanceType"` CurrentGeneration string `json:"currentGeneration"` InstanceFamily string `json:"instanceFamily"` - Vcpu string `json:"vcpu"` - Memory string `json:"memory"` + Vcpu int32 `json:"vcpu,string"` + Memory float64 `json:"memory,string"` NetworkPerformance string `json:"networkPerformance"` CacheEngine string `json:"cacheEngine"` RegionCode string `json:"regionCode"` diff --git a/opensearch_instance_data.go b/opensearch_instance_data.go index 91a66b9..5fbb96e 100644 --- a/opensearch_instance_data.go +++ b/opensearch_instance_data.go @@ -28,8 +28,8 @@ type OpenSearchInstance struct { InstanceType string `json:"instanceType"` CurrentGeneration string `json:"currentGeneration"` InstanceFamily string `json:"instanceFamily"` - Vcpu string `json:"vcpu"` - MemoryGib string `json:"memoryGib"` + Vcpu int32 `json:"vcpu,string"` + MemoryGib float64 `json:"memoryGib,string"` RegionCode string `json:"regionCode"` Servicename string `json:"servicename"` Family string `json:"family"`