Added alert for log goodput flows

This commit is contained in:
Luca Deri 2020-11-14 00:23:35 +01:00
parent e7a6682aba
commit 2120bf2486
9 changed files with 130 additions and 15 deletions

View file

@ -0,0 +1,29 @@
--
-- (C) 2019-20 - ntop.org
--
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`
-- @return A table with the alert built
local function createFlowLowGoodput(goodput_ratio)
local built = {
alert_type_params = {
goodput_ratio = goodput_ratio
}
}
return built
end
-- #######################################################
return {
alert_key = alert_keys.ntopng.alert_flow_low_goodput,
i18n_title = "alerts_dashboard.flow_low_goodput",
icon = "fas fa-exclamation",
creator = createFlowLowGoodput,
}