From 2152e73761c19c29d30ad5c8257640eb2d576a53 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 24 Jul 2024 15:58:24 -0700 Subject: [PATCH] Update max threshold permitted in ServiceLevelObjectives (#11248) (#18845) [upstream:8d21dc8f2b1edab3bbcb6116611da7dc5957bf17] Signed-off-by: Modular Magician --- .changelog/11248.txt | 3 +++ google/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 00000000000..d66e9848042 --- /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/services/monitoring/resource_monitoring_slo.go b/google/services/monitoring/resource_monitoring_slo.go index 2a7af5db83a..9344e269539 100644 --- a/google/services/monitoring/resource_monitoring_slo.go +++ b/google/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 }