diff --git a/src/main/java/com/zdjizhi/common/DosDetectionThreshold.java b/src/main/java/com/zdjizhi/common/DosDetectionThreshold.java index bfcda1d..401673a 100644 --- a/src/main/java/com/zdjizhi/common/DosDetectionThreshold.java +++ b/src/main/java/com/zdjizhi/common/DosDetectionThreshold.java @@ -9,7 +9,7 @@ import java.util.Objects; * @author wlh */ public class DosDetectionThreshold implements Serializable { - private String profileId; + private long profileId; private String attackType; private ArrayList serverIpList; private String serverIpAddr; @@ -20,11 +20,11 @@ public class DosDetectionThreshold implements Serializable { private int vsysId; private Integer[] superiorIds; - public String getProfileId() { + public long getProfileId() { return profileId; } - public void setProfileId(String profileId) { + public void setProfileId(long profileId) { this.profileId = profileId; } diff --git a/src/main/java/com/zdjizhi/common/DosEventLog.java b/src/main/java/com/zdjizhi/common/DosEventLog.java index c901076..6ea1f1d 100644 --- a/src/main/java/com/zdjizhi/common/DosEventLog.java +++ b/src/main/java/com/zdjizhi/common/DosEventLog.java @@ -8,6 +8,7 @@ public class DosEventLog implements Serializable,Cloneable { private int vsys_id; private long start_time; private long end_time; + private long profile_id; private String attack_type; private String severity; private String conditions; @@ -51,6 +52,14 @@ public class DosEventLog implements Serializable,Cloneable { this.end_time = end_time; } + public long getProfile_id() { + return profile_id; + } + + public void setProfile_id(long profile_id) { + this.profile_id = profile_id; + } + public String getAttack_type() { return attack_type; } @@ -138,6 +147,7 @@ public class DosEventLog implements Serializable,Cloneable { ", vsys_id=" + vsys_id + ", start_time=" + start_time + ", end_time=" + end_time + + ", profile_id=" + profile_id + ", attack_type='" + attack_type + '\'' + ", severity='" + severity + '\'' + ", conditions='" + conditions + '\'' + diff --git a/src/main/java/com/zdjizhi/etl/DosDetection.java b/src/main/java/com/zdjizhi/etl/DosDetection.java index 5d5ce85..9c66bcf 100644 --- a/src/main/java/com/zdjizhi/etl/DosDetection.java +++ b/src/main/java/com/zdjizhi/etl/DosDetection.java @@ -107,7 +107,7 @@ public class DosDetection extends BroadcastProcessFunction