1. DynamicRuleMapper中添加audit_status result映射
2. 给DynamicTaskInfo实体类中添加所有字段对应的Json字段 3. 修改sendFilter函数中的WebClient初始化URL和URI,修改mono.block的超时设置,添加对response字段中success的判断 4. 将TaskMapper中的getDynamicTaskInfos select语句的INNER JOIN修改为LEFT JOIN 5. updateStaticRUleAuditStatusInTask和updateDynamicRuleAuditStatusInTask添加对staticRuleIds列表的判断,确保SQL语句不会出现问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.realtime.protection.configuration.entity.task;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@@ -10,23 +11,44 @@ public class DynamicTaskInfo {
|
||||
|
||||
@Data
|
||||
private static class SimpleProtectObject {
|
||||
|
||||
@JsonProperty("ip")
|
||||
private String IP;
|
||||
|
||||
@JsonProperty("port")
|
||||
private Integer port;
|
||||
|
||||
@JsonProperty("url")
|
||||
private String URL;
|
||||
|
||||
@JsonProperty("protocol")
|
||||
private String protocol;
|
||||
}
|
||||
|
||||
// 从任务中获取
|
||||
@JsonProperty("task_id")
|
||||
private Long taskId;
|
||||
|
||||
@JsonProperty("start_time")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
@JsonProperty("end_time")
|
||||
private LocalDateTime endTime;
|
||||
|
||||
// 从规则中获取
|
||||
@JsonProperty("rule_id")
|
||||
private Integer ruleId;
|
||||
|
||||
@JsonProperty("source_system")
|
||||
private String sourceSystem;
|
||||
|
||||
@JsonProperty("event_type")
|
||||
private String eventType;
|
||||
|
||||
@JsonProperty("log_rule_id")
|
||||
private Long logRuleId;
|
||||
|
||||
// 从防护对象列表中获取
|
||||
@JsonProperty("protect_objects")
|
||||
private List<SimpleProtectObject> protectObjects;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user