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

@ -14,7 +14,7 @@ local function check_ghost_networks(params)
if(domain_info.ghost_network) then
local key = params.user_script.key .. "__" .. domain
local delta_hits = alerts_api.interface_delta_val(key, params.granularity, domain_info.hits)
local ghost_network_type = alert_consts.alert_types.alert_ghost_network.builder(
local ghost_network_type = alert_consts.alert_types.alert_ghost_network.create(
alert_consts.alert_severities.warning,
alert_consts.alerts_granularities[params.granularity],
domain