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:
Hao Miao
2024-01-18 23:35:56 +08:00
parent 914b0f0e2a
commit cb6ca74df7
10 changed files with 181 additions and 19 deletions

View File

@@ -42,7 +42,7 @@
<id column="white_list_id" property="whiteListId"/>
<result column="white_list_name" property="whiteListName"/>
<result column="white_list_system_name" property="whiteListSystemName"/>
<result column="white_list_ip" property="whiteListIP"/>
<result column="white_list_ip_d" property="whiteListIP"/>
<result column="white_list_port" property="whiteListPort"/>
<result column="white_list_url" property="whiteListUrl"/>
<result column="white_list_protocol" property="whiteListProtocol"/>
@@ -50,7 +50,8 @@
</resultMap>
<select id="queryWhiteListObject" resultMap="whiteListMap">
select * from t_white_list
select *, INET_NTOA(white_list_ip) as white_list_ip_d
from t_white_list
<where>
<if test="whiteListName != null">
white_list_name like concat('%', #{whiteListName}, '%')