agent接收数据类型调整匹配,完善资源模板管理、资源监控策略逻辑。

This commit is contained in:
gaoyutao
2025-09-24 17:40:53 +08:00
parent d5f232e295
commit 543b51ca6f
20 changed files with 419 additions and 101 deletions
@@ -100,10 +100,20 @@
<select id="selectMonitorMsgAndGroupMsg" parameterType="Long" resultType="RmResourceGroup">
select b.monitor_items monitorItems,b.discovery_rules discoveryRules from rm_resource_group a left join rm_monitor_template b on a.id=b.resource_group_id
where FIND_IN_SET(#{id}, a.included_devices_id) > 0
limit 1
</select>
<select id="exitsResourceById" parameterType="RmResourceGroup" resultType="java.lang.Integer">
select count(1) from rm_resource_group
where FIND_IN_SET(#{resourceIds}, included_devices_id) > 0
</select>
<update id="updateRmPolicyStatus" parameterType="Long">
update rm_monitor_policy set status = '0'
where resource_group_id = #{resourceGroupId}
</update>
<update id="updateScriptPolicyStatus" parameterType="Long">
update rm_deployment_policy set policy_status = '0'
where resource_group_id = #{resourceGroupId}
</update>
</mapper>