mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes and simplifies getters of engaged alert counters
This commit is contained in:
parent
7196d5e777
commit
ec5a92514d
5 changed files with 6 additions and 106 deletions
|
|
@ -219,21 +219,6 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
local function getNumEngagedAlerts(options)
|
||||
local entity_type_filter = tonumber(options.entity)
|
||||
local entity_value_filter = options.entity_val
|
||||
|
||||
local res = interface.getEngagedAlertsCount(entity_type_filter, entity_value_filter)
|
||||
|
||||
if(res ~= nil) then
|
||||
return(res.num_alerts)
|
||||
end
|
||||
|
||||
return(0)
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
-- Remove pagination options from the options
|
||||
local function getUnpagedAlertOptions(options)
|
||||
local res = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue