mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Changes for the migration to the new alerts_api.trigger_status
This commit is contained in:
parent
bccde3f618
commit
d13a4451d2
2 changed files with 2 additions and 6 deletions
|
|
@ -7,13 +7,11 @@ local alert_keys = require "alert_keys"
|
|||
-- #######################################################
|
||||
|
||||
-- @brief Prepare an alert table used to generate the alert
|
||||
-- @param alert_severity A severity as defined in `alert_consts.alert_severities`
|
||||
-- @param l2r_threshold Local-to-Remote threshold, in bytes, for a flow to be considered an elephant
|
||||
-- @param r2l_threshold Remote-to-Local threshold, in bytes, for a flow to be considered an elephant
|
||||
-- @return A table with the alert built
|
||||
local function createFlowMisbehaviour(alert_severity, l2r_threshold, r2l_threshold)
|
||||
local function createFlowMisbehaviour(l2r_threshold, r2l_threshold)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {
|
||||
["elephant.l2r_threshold"] = l2r_threshold,
|
||||
["elephant.r2l_threshold"] = r2l_threshold,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue