mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Score changes
- Move score from status definition to user scripts - Separate flow score counter from the peers score - Create a new HostScore class to hold the score data
This commit is contained in:
parent
38facb051a
commit
566b9ece0b
29 changed files with 162 additions and 126 deletions
|
|
@ -104,7 +104,7 @@ function script.hooks.protocolDetected(now, config)
|
|||
-- Set an invalid status on the flow and trigger the corresponding alert
|
||||
flow.triggerStatus(flow_consts.status_types.status_example.status_id, {
|
||||
bad_port = flow_info["srv.port"]
|
||||
})
|
||||
}, 60--[[ flow score]], 50--[[ cli score ]], 10--[[ srv score ]])
|
||||
else
|
||||
-- A previosly set status can be cleared
|
||||
-- flow.clearStatus(flow_consts.status_types.status_example.status_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue