From 349263ba1c56b273cdc45266fc1a1457699e6f67 Mon Sep 17 00:00:00 2001 From: Modular Magician <magic-modules@google.com> Date: Wed, 24 Jul 2024 22:58:10 +0000 Subject: [PATCH] Update max threshold permitted in ServiceLevelObjectives (#11248) [upstream:8d21dc8f2b1edab3bbcb6116611da7dc5957bf17] Signed-off-by: Modular Magician <magic-modules@google.com> --- .changelog/11248.txt | 3 +++ google-beta/services/monitoring/resource_monitoring_slo.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changelog/11248.txt diff --git a/.changelog/11248.txt b/.changelog/11248.txt new file mode 100644 index 0000000000..d66e984804 --- /dev/null +++ b/.changelog/11248.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +monitoring: updated max threshold permitted in google_monitoring_slo to 0.9999 +``` \ No newline at end of file diff --git a/google-beta/services/monitoring/resource_monitoring_slo.go b/google-beta/services/monitoring/resource_monitoring_slo.go index b226c65c75..27faef5388 100644 --- a/google-beta/services/monitoring/resource_monitoring_slo.go +++ b/google-beta/services/monitoring/resource_monitoring_slo.go @@ -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 }