mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Refactors alrt builders into creators
Refactors builders into creators: calls
This commit is contained in:
parent
00c5e9f909
commit
290175b16f
75 changed files with 158 additions and 158 deletions
|
|
@ -11,7 +11,7 @@ local alert_keys = require "alert_keys"
|
|||
-- @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 buildFlowMisbehaviour(alert_severity, l2r_threshold, r2l_threshold)
|
||||
local function createFlowMisbehaviour(alert_severity, l2r_threshold, r2l_threshold)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {
|
||||
|
|
@ -29,5 +29,5 @@ return {
|
|||
alert_key = alert_keys.ntopng.alert_flow_misbehaviour,
|
||||
i18n_title = "alerts_dashboard.flow_misbehaviour",
|
||||
icon = "fas fa-exclamation",
|
||||
builder = buildFlowMisbehaviour,
|
||||
creator = createFlowMisbehaviour,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue