1、优化子网卡流量图形展示。
2、优化接口名称存储逻辑,减少死锁。 3、增加cpu利用率内存利用率字段。
This commit is contained in:
+38
@@ -279,4 +279,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select count(1) from rm_network_interface_child
|
||||
where client_id = #{clientId} and parent_interface = #{interfaceName}
|
||||
</select>
|
||||
<select id="getCpuUtil" resultType="RmResourceRegistration">
|
||||
SELECT
|
||||
d.client_id as clientId,
|
||||
d.uti as cpuUtil
|
||||
FROM initial_cpu_info d
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
client_id,
|
||||
MAX(create_time) as latest_time
|
||||
FROM initial_cpu_info
|
||||
WHERE client_id in
|
||||
<foreach collection="clientIdsStr.split(',')" item="clientId" open="(" separator="," close=")">
|
||||
#{clientId}
|
||||
</foreach>
|
||||
GROUP BY client_id
|
||||
) latest ON d.client_id = latest.client_id
|
||||
AND d.create_time = latest.latest_time
|
||||
</select>
|
||||
<select id="getMemUtil" resultType="RmResourceRegistration">
|
||||
SELECT
|
||||
d.client_id as clientId,
|
||||
ROUND(d.collect_value, 1) as memUtil
|
||||
FROM initial_system_other_collect_data d
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
client_id,
|
||||
MAX(create_time) as max_time
|
||||
FROM initial_system_other_collect_data
|
||||
WHERE collect_type='memoryUtilizationCollect'
|
||||
AND client_id in
|
||||
<foreach collection="clientIdsStr.split(',')" item="clientId" open="(" separator="," close=")">
|
||||
#{clientId}
|
||||
</foreach>
|
||||
GROUP BY client_id
|
||||
) latest ON d.client_id = latest.client_id
|
||||
AND d.create_time = latest.max_time
|
||||
AND d.collect_type='memoryUtilizationCollect'
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user