mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Fixes #4332
This commit is contained in:
parent
406bee4df2
commit
79280dac60
1 changed files with 10 additions and 0 deletions
|
|
@ -12,6 +12,12 @@ local alert_consts = require "alert_consts"
|
|||
local format_utils = require "format_utils"
|
||||
local json = require "dkjson"
|
||||
local rest_utils = require("rest_utils")
|
||||
local graph_utils = nil
|
||||
|
||||
|
||||
if ntop.isPro() then
|
||||
graph_utils = require "graph_utils"
|
||||
end
|
||||
|
||||
--
|
||||
-- Read alerts data
|
||||
|
|
@ -101,6 +107,10 @@ for _key,_value in ipairs(alerts) do
|
|||
record["msg"] = msg
|
||||
record["entity"] = alert_entity
|
||||
record["entity_val"] = alert_entity_val
|
||||
|
||||
if(graph_utils and graph_utils.getAlertGraphLink) then
|
||||
record["drilldown"] = graph_utils.getAlertGraphLink(ifid, _value, alert_info, engaged)
|
||||
end
|
||||
-- record["value"] = _value
|
||||
|
||||
res[#res + 1] = record
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue