mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Add rowid to engaged alerts for all families
This commit is contained in:
parent
274f7f3fac
commit
125787909a
5 changed files with 10 additions and 6 deletions
|
|
@ -85,7 +85,7 @@ protected:
|
|||
num_alerts_engaged_error[ALERT_ENTITY_MAX_NUM_ENTITIES],
|
||||
num_alerts_engaged_critical[ALERT_ENTITY_MAX_NUM_ENTITIES],
|
||||
num_alerts_engaged_emergency[ALERT_ENTITY_MAX_NUM_ENTITIES], flow_serial;
|
||||
u_int64_t alert_serial;
|
||||
std::atomic<u_int64_t> alert_serial;
|
||||
/* Counters for active alerts. Changed by multiple concurrent threads */
|
||||
std::atomic<u_int64_t>
|
||||
num_active_alerted_flows_notice; /* Counts all flow alerts with severity
|
||||
|
|
@ -1285,7 +1285,7 @@ public:
|
|||
}
|
||||
u_int16_t getnDPIProtoByName(const char *name);
|
||||
inline u_int32_t getNewFlowSerial() { return (flow_serial++); }
|
||||
inline u_int64_t getNewAlertSerial() { return (++alert_serial); }
|
||||
inline u_int64_t getNewAlertSerial() { return alert_serial.fetch_add(1, std::memory_order_relaxed); }
|
||||
bool resetHostTopSites(AddressTree *allowed_hosts, char *host_ip,
|
||||
u_int16_t vlan_id, u_int16_t observationPointId);
|
||||
void localHostsServerPorts(lua_State *vm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue