Add Alert:set_category for host/flow lua alerts with no check definition in lua

This commit is contained in:
Alfredo Cardigliano 2023-11-28 12:30:53 +01:00
parent b5b8ebbba0
commit e8f10f0795
6 changed files with 74 additions and 59 deletions

View file

@ -212,6 +212,7 @@ function alerts_api.store(entity_info, type_info, when)
ifid = ifid,
action = "store",
alert_id = type_info.alert_type.alert_key,
alert_category = type_info.alert_category and type_info.alert_category.id,
subtype = subtype,
granularity = granularity_sec,
entity_id = entity_info.alert_entity.entity_id,