Add HostAlert constructor with check ID/name

This commit is contained in:
Alfredo Cardigliano 2022-12-19 11:39:20 -05:00
parent d41aab8b28
commit f3d5d8d07e
2 changed files with 17 additions and 3 deletions

View file

@ -41,8 +41,10 @@ class HostAlert {
Adds to the passed `serializer` (generated with `getAlertSerializer`) information specific to this alert
*/
virtual ndpi_serializer* getAlertJSON(ndpi_serializer* serializer) { return serializer; }
void init(HostCheckID _check_id, std::string _check_name, Host *h, risk_percentage _cli_pctg);
public:
HostAlert(HostCheckID check_id, std::string check_name, Host *h, risk_percentage _cli_pctg);
HostAlert(HostCheck *c, Host *h, risk_percentage _cli_pctg);
virtual ~HostAlert();