mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes behavior anomaly alert key not found
This commit is contained in:
parent
fd40e51428
commit
47497ca666
5 changed files with 45 additions and 37 deletions
30
scripts/lua/modules/behavior_utils.lua
Normal file
30
scripts/lua/modules/behavior_utils.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
--
|
||||
-- (C) 2020-21 - ntop.org
|
||||
--
|
||||
|
||||
local behavior_utils = {}
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local behavior_table = {
|
||||
asn = {
|
||||
page_path = "/lua/as_details.lua",
|
||||
timeseries_id = "asn",
|
||||
schema_id = "asn",
|
||||
},
|
||||
network = {
|
||||
page_path = "/lua/network_details.lua",
|
||||
timeseries_id = "network",
|
||||
schema_id = "subnet",
|
||||
}
|
||||
}
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function behavior_utils.get_behavior_timeseries_utils(family_key)
|
||||
return behavior_table[family_key]
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
return behavior_utils
|
||||
Loading…
Add table
Add a link
Reference in a new issue