mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Align host alert fields
This commit is contained in:
parent
0e42347e17
commit
a320372b5d
3 changed files with 9 additions and 8 deletions
|
|
@ -228,18 +228,18 @@ function alerts_api.store(entity_info, type_info, when)
|
|||
action = "store",
|
||||
alert_id = type_info.alert_type.alert_key,
|
||||
alert_category = type_info.alert_category and type_info.alert_category.id,
|
||||
require_attention = type_info.require_attention or false,
|
||||
subtype = subtype,
|
||||
granularity = granularity_sec,
|
||||
score = type_info.score,
|
||||
entity_id = entity_info.alert_entity.entity_id,
|
||||
entity_val = entity_info.entity_val,
|
||||
score = type_info.score,
|
||||
require_attention = type_info.require_attention or false,
|
||||
tstamp = when,
|
||||
tstamp_end = when,
|
||||
is_attacker = type_info.is_attacker or false,
|
||||
is_victim = type_info.is_victim or false,
|
||||
device_type = type_info.device_type,
|
||||
device_name = type_info.device_name,
|
||||
tstamp = when,
|
||||
tstamp_end = when,
|
||||
granularity = granularity_sec,
|
||||
json = alert_json
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue