added check

This commit is contained in:
Matteo Biscosi 2025-05-16 18:03:47 +02:00
parent 02df9bf01b
commit f697b62ec5

View file

@ -41,7 +41,7 @@ local function check_redis_reads_writes_exceeded(params)
}
local ts = ts_utils.timeseries_query(options)
-- Check if the day target is nan
if not (ts.series[1].data[7] == ts.series[1].data[7]) then
if not ts or not (ts.series[1].data[7] == ts.series[1].data[7]) then
return
end
local sumr = 0