Skip to content

Commit

Permalink
Update max threshold permitted in ServiceLevelObjectives (#11248) (#1…
Browse files Browse the repository at this point in the history
…8845)

[upstream:8d21dc8f2b1edab3bbcb6116611da7dc5957bf17]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jul 24, 2024
1 parent 5cd0fba commit 2152e73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/11248.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
monitoring: updated max threshold permitted in google_monitoring_slo to 0.9999
```
4 changes: 2 additions & 2 deletions google/services/monitoring/resource_monitoring_slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import (

func validateMonitoringSloGoal(v interface{}, k string) (warnings []string, errors []error) {
goal := v.(float64)
if goal <= 0 || goal > 0.999 {
errors = append(errors, fmt.Errorf("goal %f must be > 0 and <= 0.999", goal))
if goal <= 0 || goal > 0.9999 {
errors = append(errors, fmt.Errorf("goal %f must be > 0 and <= 0.9999", goal))
}
return
}
Expand Down

0 comments on commit 2152e73

Please sign in to comment.