Add current zmq header version in ExportInterface

This commit is contained in:
emanuele-f 2017-05-20 12:36:19 +02:00
parent 3cf548123d
commit ef10ba3540
6 changed files with 1 additions and 63 deletions

View file

@ -1525,29 +1525,6 @@ $('#myModal').on('hidden.bs.modal', function () {
end
function alertAnomalousHosts()
local ifnames = interface.getIfNames()
local cb = function(_ifname, ifstats)
local ha = interface.getHostsWithAnomalies()
for host_key, host_stats in pairs(ha) do
local anomalies = host_stats["anomalies"]
if type(anomalies) == "table" then
for anom_key, anom_stats in pairs(anomalies) do
-- TODO: engage alert for anom_key if alert has not yet been engaged
end
end
end
--TODO: check, among the currently engaged alerts, those that are no longed engaged
-- by checking in ha retrieved above. If an alert is engaged, but the corresponding host
-- is no longer in ha, then the alert must be released.
end
callback_utils.foreachInterface(ifnames, enable_second_debug, cb)
end
-- #################################
local function getEngagedAlertsCacheKey(ifid, granularity)