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

@ -547,7 +547,7 @@ function alerts_api.checkThresholdAlert(params, alert_type, value)
local threshold_config = params.user_script_config
local alarmed = false
local threshold_type = alert_type.builder(
local threshold_type = alert_type.create(
alert_consts.alert_severities.error,
script.key,
alert_consts.alerts_granularities[params.granularity],