Unifies alerts generation format with flow statuses

This commit is contained in:
Simone Mainardi 2020-04-27 14:37:04 +02:00
parent 2648ae372f
commit efe4f9a8be
10 changed files with 42 additions and 31 deletions

View file

@ -14,8 +14,10 @@ local alert_keys = require "alert_keys"
local function buildFlowMisbehaviour(alert_severity, l2r_threshold, r2l_threshold)
local built = {
alert_severity = alert_severity,
["elephant.l2r_threshold"] = l2r_threshold,
["elephant.r2l_threshold"] = r2l_threshold,
alert_type_params = {
["elephant.l2r_threshold"] = l2r_threshold,
["elephant.r2l_threshold"] = r2l_threshold,
}
}
return built