Changes for the migration to the new alerts_api.trigger_status

This commit is contained in:
Simone Mainardi 2020-11-12 11:48:59 +01:00
parent bccde3f618
commit d13a4451d2
2 changed files with 2 additions and 6 deletions

View file

@ -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,