mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +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"
|
||||
-- Import the classes library.
|
||||
local classes = require "classes"
|
||||
-- Make sure to import the Superclass!
|
||||
|
|
@ -18,7 +17,6 @@ local alert_unexpected_ntp_server = classes.class(alert)
|
|||
-- ##############################################
|
||||
|
||||
alert_unexpected_ntp_server.meta = {
|
||||
status_key = status_keys.ntopng.status_unexpected_ntp_server,
|
||||
alert_key = alert_keys.ntopng.alert_unexpected_ntp_server,
|
||||
i18n_title = "unexpected_ntp.alert_unexpected_ntp_title",
|
||||
icon = "fas fa-exclamation",
|
||||
|
|
@ -32,14 +30,9 @@ alert_unexpected_ntp_server.meta = {
|
|||
-- @param one_flow_param The first alert param
|
||||
-- @param another_flow_param The second alert param
|
||||
-- @return A table with the alert built
|
||||
function alert_unexpected_ntp_server:init(client_ip, server_ip)
|
||||
function alert_unexpected_ntp_server:init()
|
||||
-- Call the parent constructor
|
||||
self.super:init()
|
||||
|
||||
self.alert_type_params = {
|
||||
client_ip = client_ip,
|
||||
server_ip = server_ip
|
||||
}
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue