diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f33b67..4ae5ba2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog Changelog for go-wavefront-management-api. + +## [2.1.0] + +- Dashboard object to omit chart `summarization` field when empty. + - Helps prevent the following API error when it is not included in the JSON body: + ```text + Cannot deserialize value of type `sunnylabs.query.SummarizationStrategy` from String \"\": was not one of [MEAN, MEDIAN, MIN, MAX, SUM, COUNT, LAST, FIRST, ANOMALOUS] + ``` + ## [2.0.0] Breaking Change: diff --git a/dashboard.go b/dashboard.go index b9852f0..b2a9db3 100644 --- a/dashboard.go +++ b/dashboard.go @@ -135,7 +135,7 @@ type Chart struct { NoDefaultEvents bool `json:"noDefaultEvents"` // Strategy to use when aggregating metric points (LAST, AVERAGE, COUNT, etc) - Summarization string `json:"summarization"` + Summarization string `json:"summarization,omitempty"` // Sources is an Array of Source Sources []Source `json:"sources"` diff --git a/version b/version index 227cea2..7ec1d6d 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.0 +2.1.0