Automated commit of clang-format CI changes.

This commit is contained in:
lucaderi 2023-04-07 14:20:44 +00:00 committed by clang-format-bot
parent 2ecb162dfb
commit d395deac4e
604 changed files with 47610 additions and 38436 deletions

View file

@ -22,28 +22,28 @@
#ifndef _CUSTOM_HOST_LUA_SCRIPT_ALERT_H_
#define _CUSTOM_HOST_LUA_SCRIPT_ALERT_H_
#include "ntop_includes.h"
class CustomHostLuaScriptAlert : public HostAlert {
private:
u_int8_t score;
private:
u_int8_t score;
std::string msg;
ndpi_serializer* getAlertJSON(ndpi_serializer* serializer);
public:
static HostAlertType getClassType() { return { host_alert_custom_lua_script, alert_category_security }; }
static HostAlertType getClassType() {
return {host_alert_custom_lua_script, alert_category_security};
}
CustomHostLuaScriptAlert(HostCheck *c, Host *f, risk_percentage cli_pctg, u_int32_t _score, std::string _msg);
~CustomHostLuaScriptAlert() {};
HostAlertType getAlertType() const { return getClassType(); }
void setAlertMessage(std::string m) { msg = m; };
void setAlertScore(u_int8_t v) { score = v; };
virtual u_int8_t getAlertScore()const { return(score); };
CustomHostLuaScriptAlert(HostCheck* c, Host* f, risk_percentage cli_pctg,
u_int32_t _score, std::string _msg);
~CustomHostLuaScriptAlert(){};
HostAlertType getAlertType() const { return getClassType(); }
void setAlertMessage(std::string m) { msg = m; };
void setAlertScore(u_int8_t v) { score = v; };
virtual u_int8_t getAlertScore() const { return (score); };
};
#endif /* _CUSTOM_HOST_LUA_SCRIPT_ALERT_H_ */