mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
d9bba4b4b2
commit
d3dda0bb82
38 changed files with 217 additions and 145 deletions
|
|
@ -4,8 +4,21 @@
|
|||
|
||||
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 createUDPUnidirectional(alert_severity)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {},
|
||||
}
|
||||
|
||||
return built
|
||||
end
|
||||
|
||||
return {
|
||||
alert_key = alert_keys.ntopng.alert_udp_unidirectional,
|
||||
i18n_title = "alerts_dashboard.udp_unidirectional",
|
||||
icon = "fas fa-exclamation",
|
||||
i18n_title = "flow_details.udp_unidirectional",
|
||||
icon = "fas fa-info-circle",
|
||||
creator = createUDPUnidirectional,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue