mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Removed default severity from some alerts
This commit is contained in:
parent
972aeb8c47
commit
0fbe214a60
6 changed files with 14 additions and 25 deletions
|
|
@ -20,14 +20,14 @@ local handler = {}
|
|||
-- @param flow_score An integer score that will be added to the total flow score
|
||||
-- @param cli_score An integer score that will be added to the client score
|
||||
-- @param srv_score An integer score that will be added to the server score
|
||||
function handler.handle_risk(conf, risk_id, flow_score, cli_score, srv_score)
|
||||
function handler.handle_risk(risk_id, flow_score, cli_score, srv_score)
|
||||
-- Set a flow status for the generic flow_risk. This will also
|
||||
-- cause an alert to be generated.
|
||||
local alert = alert_consts.alert_types.alert_flow_risk.new(
|
||||
risk_id
|
||||
)
|
||||
|
||||
alert:set_severity(conf.severity)
|
||||
alert:set_severity(alert_severities.warning)
|
||||
|
||||
alert:trigger_status(cli_score or 0, srv_score or 0, flow_score or 0)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue