Updates ts.lua with new stacked charts by severity

This commit is contained in:
Simone Mainardi 2021-05-03 12:38:08 +02:00
parent f5138b71ac
commit fce6454125
7 changed files with 48 additions and 29 deletions

View file

@ -32,6 +32,6 @@ end
interface.select(ifid)
local count_by_time = mac_alert_store:count_by_time()
local count_by_severity_and_time = mac_alert_store:count_by_severity_and_time()
rest_utils.answer(rc, {series = {{ data = count_by_time, name = i18n("alerts_dashboard.alerts") }}})
rest_utils.answer(rc, {series = {{ data = count_by_severity_and_time, name = i18n("alerts_dashboard.alerts") }}})