Implements efficient unexpected_new_device alert

This commit is contained in:
Simone Mainardi 2021-05-11 19:03:40 +02:00
parent 03bf2bca5e
commit bb3f8ed168
15 changed files with 116 additions and 100 deletions

View file

@ -173,6 +173,8 @@ function alerts_api.store(entity_info, type_info, when)
entity_id = entity_info.alert_entity.entity_id,
entity_val = entity_info.entity_val,
score = type_info.score,
device_type = type_info.device_type,
device_name = type_info.device_name,
tstamp = when,
tstamp_end = when,
json = alert_json,