Renames alert_config to user_script_config

This commit is contained in:
Simone Mainardi 2020-03-26 14:51:53 +01:00
parent 61ab06fcd7
commit 3144bc8bdf
12 changed files with 16 additions and 16 deletions

View file

@ -105,7 +105,7 @@ function script.hooks.min(info)
local bytes = host.getBytes()
local tot_bytes = bytes["bytes.sent"] + bytes["bytes.rcvd"]
if(tot_bytes > info.alert_config.max_bytes) then
if(tot_bytes > info.user_script_config.max_bytes) then
-- Trigger alert
alerts_api.trigger(info.alert_entity, alert_info)
else