Define new alert cloud_reconnected

This commit is contained in:
Alfredo Cardigliano 2024-06-21 17:59:14 +02:00
parent dab5aeba99
commit 8d326f2718
6 changed files with 78 additions and 1 deletions

View file

@ -134,6 +134,10 @@ local function processStoreAlertFromQueue(alert)
entity_info = alert_entity_builders.systemEntity("cloud")
type_info = alert_consts.alert_types.alert_cloud_disconnected.new()
type_info:set_score_warning()
elseif (alert.alert_id == "cloud_reconnected") then
entity_info = alert_entity_builders.systemEntity("cloud")
type_info = alert_consts.alert_types.alert_cloud_reconnected.new()
type_info:set_score_notice()
else
traceError(TRACE_ERROR, TRACE_CONSOLE, "Unknown alert type " .. (alert.alert_id or ""))
end