mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +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
|
|
@ -13,7 +13,7 @@ local alert_keys = require "alert_keys"
|
|||
-- @param drop_perc The percentage of dropped packets with reference to the total number of packets (recevied + dropped)
|
||||
-- @param threshold A number indicating the threshold compared with `drop_perc`
|
||||
-- @return A table with the alert built
|
||||
local function buildTooManyDrops(alert_severity, alert_granularity, drops, drop_perc, threshold)
|
||||
local function createTooManyDrops(alert_severity, alert_granularity, drops, drop_perc, threshold)
|
||||
return({
|
||||
alert_severity = alert_severity,
|
||||
alert_granularity = alert_granularity,
|
||||
|
|
@ -40,5 +40,5 @@ return {
|
|||
i18n_title = "alerts_dashboard.too_many_drops",
|
||||
icon = "fas fa-tint",
|
||||
i18n_description = formatTooManyPacketDrops,
|
||||
builder = buildTooManyDrops
|
||||
creator = createTooManyDrops
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue