Skip to content

Commit

Permalink
Fixed validation of service_level_indicator.0.windows_based_sli.0.met…
Browse files Browse the repository at this point in the history
…ric_sum_in_range.0.range.0.max (#3826)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Aug 7, 2020
1 parent 38dcb3d commit e5e2a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/3826.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
monitoring: fixed validation rules for `google_monitoring_slo` `windows_based_sli.metric_sum_in_range.max` field
```
2 changes: 1 addition & 1 deletion google/resource_monitoring_slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ just one of min or max. Summed value 'X' should satisfy
Description: `max value for the range (inclusive). If not given,
will be set to "infinity", defining an open range
">= range.min"`,
AtLeastOneOf: []string{"windows_based_sli.0.metric_mean_in_range.0.range.0.min", "windows_based_sli.0.metric_mean_in_range.0.range.0.max"},
AtLeastOneOf: []string{"windows_based_sli.0.metric_sum_in_range.0.range.0.min", "windows_based_sli.0.metric_sum_in_range.0.range.0.max"},
},
"min": {
Type: schema.TypeInt,
Expand Down

0 comments on commit e5e2a49

Please sign in to comment.