Fixes behavior anomaly alert key not found

This commit is contained in:
MatteoBiscosi 2021-06-23 22:55:08 +02:00
parent fd40e51428
commit 47497ca666
5 changed files with 45 additions and 37 deletions

View file

@ -106,7 +106,6 @@ end
function network_alert_store:format_record(value, no_html)
local record = self:format_json_record_common(value, alert_entities.network.entity_id, no_html)
local alert_id_label = alert_consts.alertTypeLabel(tonumber(value["alert_id"]), no_html)
local alert_name = alert_consts.alertTypeLabel(tonumber(value["alert_id"]), no_html, alert_entities.network.entity_id)
local alert_info = alert_utils.getAlertInfo(value)
local msg = alert_utils.formatAlertMessage(ifid, value, alert_info)