ntopng/include/host_alerts/CountriesContactsAlert.h
Francesco Amodeo de27966413
Implemented countries host check (#5713)
* 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>
2021-08-25 15:50:07 +02:00

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; };
};