mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
* Added check and alert implementation * Fixed size of estimation and some typo * Added HLL counters and DES structure Co-authored-by: Paolo Junior Mollica <p.mollica@studenti.unipi.it> * fixes according comments of PR * decreased memory footprint * resolved conflicts * fixed HostCheckID * Removed wrongly committed file Co-authored-by: paolo-junior-mollica <paolo.junior.mollica@gmail.com> Co-authored-by: Matteo Biscosi <49585191+MatteoBiscosi@users.noreply.github.com>
16 lines
No EOL
657 B
C++
16 lines
No EOL
657 B
C++
#include "ntop_includes.h"
|
|
|
|
class CountriesContactsAlert : public HostAlert {
|
|
private:
|
|
u_int8_t countries_contacts, countries_contacts_threshold;
|
|
|
|
ndpi_serializer* getAlertJSON(ndpi_serializer* serializer);
|
|
|
|
public:
|
|
CountriesContactsAlert(HostCheck *c, Host *f, risk_percentage cli_pctg, u_int8_t _countries_contacts, u_int8_t _countries_contacts_threshold);
|
|
~CountriesContactsAlert() {}
|
|
|
|
static HostAlertType getClassType() { return { host_alert_countries_contacts, alert_category_security }; }
|
|
HostAlertType getAlertType() const { return getClassType(); }
|
|
u_int8_t getAlertScore() const { return SCORE_LEVEL_NOTICE; };
|
|
}; |