mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Started implementing flow alerts graph (#9096)
* Removed CVE col from hosts table * Removed CVE col from hosts table * Started implementing alerts graph * Added tooltip init
This commit is contained in:
parent
48de1e9e9a
commit
ceb521a381
8 changed files with 1105 additions and 3 deletions
|
|
@ -764,6 +764,25 @@ function alert_consts.alertSeverity(v)
|
|||
return (alert_severities[v].severity_id)
|
||||
end
|
||||
|
||||
-- ################################################################################
|
||||
-- ################################################################################
|
||||
|
||||
function alert_consts.getSeverityColorById(severity_id)
|
||||
for _, severity in pairs(alert_severities) do
|
||||
if severity.severity_id == severity_id then
|
||||
return severity.color
|
||||
end
|
||||
end
|
||||
return "#000000"
|
||||
end
|
||||
|
||||
function alert_consts.getSeverityLabelById(severity_id)
|
||||
for _, severity in pairs(alert_severities) do
|
||||
if severity.severity_id == severity_id then
|
||||
return i18n(severity.i18n_title)
|
||||
end
|
||||
end
|
||||
end
|
||||
-- ################################################################################
|
||||
|
||||
function alert_consts.alertSeverityById(severity_id)
|
||||
|
|
|
|||
|
|
@ -229,6 +229,11 @@ page_utils.menu_entries = {
|
|||
i18n_title = "details.alerts_analysis",
|
||||
section = "alerts"
|
||||
},
|
||||
alerts_graph = {
|
||||
key = "alerts_graph",
|
||||
i18n_title = "details.alerts_graph",
|
||||
section = "alerts"
|
||||
},
|
||||
|
||||
-- Flows
|
||||
flows = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue