mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
Renames alert_config to user_script_config
This commit is contained in:
parent
61ab06fcd7
commit
3144bc8bdf
12 changed files with 16 additions and 16 deletions
|
|
@ -37,7 +37,7 @@ local function request_reply_ratio(params)
|
|||
local req_repl_type = alerts_api.requestReplyRatioType(key, requests, replies, params.granularity)
|
||||
|
||||
-- 10: some meaningful value
|
||||
if((requests + replies > 10) and (ratio < tonumber(params.alert_config.threshold))) then
|
||||
if((requests + replies > 10) and (ratio < tonumber(params.user_script_config.threshold))) then
|
||||
alerts_api.trigger(params.alert_entity, req_repl_type, nil, params.cur_alerts)
|
||||
else
|
||||
alerts_api.release(params.alert_entity, req_repl_type, nil, params.cur_alerts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue