diff --git a/CHANGELOG.md b/CHANGELOG.md index 74a4fedac..1fcdaab24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Release (2024-XX-XX) +- `opensearch`: [v0.18.0](services/opensearch/CHANGELOG.md#v0180-2024-09-02) + - **Breaking changes:** `GetMetricsResponse` fields have changed data types + - `CpuLoadPercent`, `Load1`, `Load15` and `Load5` are now `*float64` + - `ParachuteDiskEphemeralActivated` and `ParachuteDiskPersistentActivated` are now `*bool` - `mariadb`: [v0.19.0](services/mariadb/CHANGELOG.md#v0190-2024-09-02) - **Breaking changes:** `GetMetricsResponse` fields have changed data types - `CpuLoadPercent`, `Load1`, `Load15` and `Load5` are now `*float64` diff --git a/services/opensearch/CHANGELOG.md b/services/opensearch/CHANGELOG.md index 7f7a0f506..f0e8a2009 100644 --- a/services/opensearch/CHANGELOG.md +++ b/services/opensearch/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.18.0 (2024-09-02) + +- **Breaking changes:** `GetMetricsResponse` fields have changed data types + - `CpuLoadPercent`, `Load1`, `Load15` and `Load5` are now `*float64` + - `ParachuteDiskEphemeralActivated` and `ParachuteDiskPersistentActivated` are now `*bool` + ## v0.17.0 (2024-08-01) - **Feature:** `Plan` has a new field `SkuName` diff --git a/services/opensearch/model_get_metrics_response.go b/services/opensearch/model_get_metrics_response.go index 9ee621bcb..b10463ff3 100644 --- a/services/opensearch/model_get_metrics_response.go +++ b/services/opensearch/model_get_metrics_response.go @@ -14,9 +14,9 @@ package opensearch type GetMetricsResponse struct { CpuIdleTime *int64 `json:"cpuIdleTime,omitempty"` // REQUIRED - CpuLoadPercent *int64 `json:"cpuLoadPercent"` - CpuSystemTime *int64 `json:"cpuSystemTime,omitempty"` - CpuUserTime *int64 `json:"cpuUserTime,omitempty"` + CpuLoadPercent *float64 `json:"cpuLoadPercent"` + CpuSystemTime *int64 `json:"cpuSystemTime,omitempty"` + CpuUserTime *int64 `json:"cpuUserTime,omitempty"` // REQUIRED DiskEphemeralTotal *int64 `json:"diskEphemeralTotal"` // REQUIRED @@ -26,17 +26,17 @@ type GetMetricsResponse struct { // REQUIRED DiskPersistentUsed *int64 `json:"diskPersistentUsed"` // REQUIRED - Load1 *int64 `json:"load1"` + Load1 *float64 `json:"load1"` // REQUIRED - Load15 *int64 `json:"load15"` + Load15 *float64 `json:"load15"` // REQUIRED - Load5 *int64 `json:"load5"` + Load5 *float64 `json:"load5"` // REQUIRED MemoryTotal *int64 `json:"memoryTotal"` // REQUIRED MemoryUsed *int64 `json:"memoryUsed"` // REQUIRED - ParachuteDiskEphemeralActivated *int64 `json:"parachuteDiskEphemeralActivated"` + ParachuteDiskEphemeralActivated *bool `json:"parachuteDiskEphemeralActivated"` // REQUIRED ParachuteDiskEphemeralTotal *int64 `json:"parachuteDiskEphemeralTotal"` // REQUIRED @@ -46,7 +46,7 @@ type GetMetricsResponse struct { // REQUIRED ParachuteDiskEphemeralUsedThreshold *int64 `json:"parachuteDiskEphemeralUsedThreshold"` // REQUIRED - ParachuteDiskPersistentActivated *int64 `json:"parachuteDiskPersistentActivated"` + ParachuteDiskPersistentActivated *bool `json:"parachuteDiskPersistentActivated"` // REQUIRED ParachuteDiskPersistentTotal *int64 `json:"parachuteDiskPersistentTotal"` // REQUIRED