mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Deferred flow alerts insertion through a redis queue. Removed alerts DB select when printing flow details.
This commit is contained in:
parent
a19a878d59
commit
d10dfc7762
9 changed files with 463 additions and 263 deletions
|
|
@ -2803,9 +2803,10 @@ function processAlertNotifications(now, periodic_frequency, force_export)
|
|||
message.table_name = nil
|
||||
message = table.merge(message, res[1])
|
||||
|
||||
-- silly but necessary due to the AlertsManager::notifyFlowAlert
|
||||
message.alert_entity = alert_consts.alert_entities.flow.entity_id -- silly but necessary due to the AlertsManager::notifyFlowAlert
|
||||
-- Silly but necessary due to the notifyFlowAlert
|
||||
message.alert_entity = alert_consts.alert_entities.flow.entity_id
|
||||
message.alert_entity_val = "flow"
|
||||
|
||||
json_message = json.encode(message)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue