File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 44
55[ Unreleased ] : https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/compare/0.32.1...HEAD
66
7+ ### Changed
8+
9+ * Always return falsey from ` chaosgcp.monitoring.proves.valid_slo_ratio_during_window `
10+ when no data was found for the SLO
11+
712## [ 0.32.1] [ ] - 2024-05-31
813
914[ 0.32.1 ] : https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/compare/0.32.0...0.32.1
Original file line number Diff line number Diff line change @@ -326,6 +326,10 @@ def valid_slo_ratio_during_window(
326326
327327 logger .debug (f"Return SLO health: { response } " )
328328
329+ if not response :
330+ logger .debug ("SLO has no data for that period of time" )
331+ return False
332+
329333 points = response [0 ]["points" ]
330334
331335 good = 0
You can’t perform that action at this time.
0 commit comments