1、添加AlertMessage http接口,接收告警信息。
2、AlertMessage对象增加dynamicRuleId属性。需要发送时也携带dynamicRuleId字段 3、AlertMessageService添加获取dynamicRule对应的template,并根据template对AlertMessage中的FiveTupleWithMask进行筛选策略模板所需字段;添加生成TaskCommandInfo入Doris库 4、TaskCommandInfo新增templateId、protectLevel属性,方便AlertMessageService中查询任务的策略模板 5、前端响应字段的bug修复
This commit is contained in:
@@ -112,6 +112,12 @@ public class StaticRuleServiceTest extends ProtectionApplicationTests {
|
||||
System.out.println(object);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testQueryStaticRules(){
|
||||
List<StaticRuleObject> staticRuleObjects = staticRuleService.queryStaticRule(null, null, null, null, 1, 10);
|
||||
System.out.println(staticRuleObjects);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user