mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Added alert for log goodput flows
This commit is contained in:
parent
e7a6682aba
commit
2120bf2486
9 changed files with 130 additions and 15 deletions
|
|
@ -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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue