mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Automated commit of clang-format CI changes.
This commit is contained in:
parent
2ecb162dfb
commit
d395deac4e
604 changed files with 47610 additions and 38436 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue