CloudWatch: Add field level comments to schema (#66900)

* CloudWatch: Add field level comments to schema

* update comments

* pr comments

* remove unneeded test
This commit is contained in:
Kevin Yu
2023-04-24 08:57:39 -07:00
committed by GitHub
parent 4e492ae725
commit 68a277b53b
4 changed files with 384 additions and 102 deletions
@@ -289,16 +289,6 @@ func TestCloudWatchQuery(t *testing.T) {
})
}
func TestQueryJSON(t *testing.T) {
jsonString := []byte(`{
"type": "timeSeriesQuery"
}`)
var res metricsDataQuery
err := json.Unmarshal(jsonString, &res)
require.NoError(t, err)
assert.Equal(t, "timeSeriesQuery", res.Type)
}
func TestRequestParser(t *testing.T) {
t.Run("legacy statistics field is migrated: migrates first stat only", func(t *testing.T) {
oldQuery := []backend.DataQuery{