mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implements flow callbacks and alerts in C++
This commit is contained in:
parent
3659188002
commit
aea9138bfb
353 changed files with 10790 additions and 4455 deletions
|
|
@ -5,7 +5,6 @@
|
|||
-- ##############################################
|
||||
|
||||
local alert_keys = require "alert_keys"
|
||||
local status_keys = require "status_keys"
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
local flow_risk_utils = require "flow_risk_utils"
|
||||
|
|
@ -21,7 +20,6 @@ local alert_flow_risk = classes.class(alert)
|
|||
-- ##############################################
|
||||
|
||||
alert_flow_risk.meta = {
|
||||
status_key = status_keys.ntopng.status_flow_risk,
|
||||
alert_key = alert_keys.ntopng.alert_flow_risk,
|
||||
i18n_title = "alerts_dashboard.flow_risk",
|
||||
icon = "fas fa-exclamation",
|
||||
|
|
@ -32,13 +30,9 @@ alert_flow_risk.meta = {
|
|||
-- @brief Prepare an alert table used to generate the alert
|
||||
-- @param risk_id Integer nDPI flow risk identifier
|
||||
-- @return A table with the alert built
|
||||
function alert_flow_risk:init(risk_id)
|
||||
function alert_flow_risk:init()
|
||||
-- Call the parent constructor
|
||||
self.super:init()
|
||||
|
||||
self.alert_type_params = {
|
||||
risk_id = risk_id
|
||||
}
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue