mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implements example of simplified flow alerts
This commit is contained in:
parent
683a4a727b
commit
93920ccdce
9 changed files with 132 additions and 7 deletions
|
|
@ -130,6 +130,13 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
--! @param type_info data returned by one of the type_info building functions
|
||||
function alerts_api.trigger_status(type_info, alert_severity, cli_score, srv_score, flow_score)
|
||||
type_info.status_type.alert_severity = alert_severity
|
||||
flow.triggerStatus(type_info, flow_score, cli_score, srv_score)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
--! @param entity_info data returned by one of the entity_info building functions
|
||||
--! @param type_info data returned by one of the type_info building functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue