Implements example of simplified flow alerts

This commit is contained in:
Simone Mainardi 2020-11-10 15:10:54 +01:00
parent 683a4a727b
commit 93920ccdce
9 changed files with 132 additions and 7 deletions

View file

@ -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