Refactors alrt builders into creators

Refactors builders into creators: calls
This commit is contained in:
Simone Mainardi 2020-04-27 15:36:34 +02:00
parent 00c5e9f909
commit 290175b16f
75 changed files with 158 additions and 158 deletions

View file

@ -35,7 +35,7 @@ local function request_reply_ratio(params)
local requests = alerts_api.host_delta_val(to_check_key .. "_requests", params.granularity, values[1], skip_first)
local replies = alerts_api.host_delta_val(to_check_key .. "_replies", params.granularity, values[2], skip_first)
local ratio = (replies * 100) / (requests+1)
local req_repl_type = alert_consts.alert_types.alert_slow_purge.builder(
local req_repl_type = alert_consts.alert_types.alert_slow_purge.create(
alert_consts.alert_severities.warning,
params.granularity,
key,