1、所有流量表新增字段ping丢包率。
2、开发ping丢包率图形接口。
This commit is contained in:
@@ -146,11 +146,11 @@
|
||||
a.create_time as createTime,
|
||||
a.update_time as updateTime,
|
||||
b.serial,
|
||||
b.total,
|
||||
b.write_speed as writeSpeed,
|
||||
b.read_speed as readSpeed,
|
||||
TRUNCATE(IFNULL(b.total,0)/(1024 * 1024 * 1024), 0) as total,
|
||||
TRUNCATE(IFNULL(b.write_speed,0)/1024, 0) as writeSpeed,
|
||||
TRUNCATE(IFNULL(b.read_speed,0)/1024, 0) as readSpeed,
|
||||
b.type,
|
||||
b.used_space as usedSpace
|
||||
TRUNCATE(IFNULL(b.used_space,0)/(1024 * 1024 * 1024), 0) as usedSpace
|
||||
FROM all_disk_name a
|
||||
LEFT JOIN (
|
||||
SELECT client_id, name, MAX(create_time) as max_create_time
|
||||
|
||||
+8
-6
@@ -112,14 +112,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
create_by, update_by, client_id, create_time,
|
||||
ipv4_in_speed, ipv4_out_speed, ipv6_in_speed, ipv6_out_speed,
|
||||
total_ipv4_in_speed, total_ipv4_out_speed, total_ipv6_in_speed, total_ipv6_out_speed,
|
||||
ipV6
|
||||
ipV6, ping_dropped
|
||||
) VALUES (
|
||||
#{name}, #{mac}, #{status}, #{type}, #{ipV4}, #{inDropped}, #{outDropped},
|
||||
#{inSpeed}, #{outSpeed}, #{totalInSpeed}, #{totalOutSpeed}, #{duplex}, #{speed},
|
||||
#{createBy}, #{updateBy}, #{clientId}, #{createTime},
|
||||
#{ipv4InSpeed}, #{ipv4OutSpeed}, #{ipv6InSpeed}, #{ipv6OutSpeed},
|
||||
#{totalIpv4InSpeed}, #{totalIpv4OutSpeed}, #{totalIpv6InSpeed}, #{totalIpv6OutSpeed},
|
||||
#{ipV6}
|
||||
#{ipV6}, #{pingDropped}
|
||||
)
|
||||
</insert>
|
||||
|
||||
@@ -130,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
create_by, update_by, client_id, create_time,
|
||||
ipv4_in_speed, ipv4_out_speed, ipv6_in_speed, ipv6_out_speed,
|
||||
total_ipv4_in_speed, total_ipv4_out_speed, total_ipv6_in_speed, total_ipv6_out_speed,
|
||||
ipV6
|
||||
ipV6, ping_dropped
|
||||
) VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
@@ -139,7 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{item.createBy}, #{item.updateBy}, #{item.clientId}, #{item.createTime},
|
||||
#{item.ipv4InSpeed}, #{item.ipv4OutSpeed}, #{item.ipv6InSpeed}, #{item.ipv6OutSpeed},
|
||||
#{item.totalIpv4InSpeed}, #{item.totalIpv4OutSpeed}, #{item.totalIpv6InSpeed}, #{item.totalIpv6OutSpeed},
|
||||
#{item.ipV6}
|
||||
#{item.ipV6}, #{item.pingDropped}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
@@ -173,7 +173,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
total_ipv4_out_speed as totalIpv4OutSpeed,
|
||||
total_ipv6_in_speed as totalIpv6InSpeed,
|
||||
total_ipv6_out_speed as totalIpv6OutSpeed,
|
||||
ipV6
|
||||
ipV6,
|
||||
ping_dropped as pingDropped
|
||||
from ${tableName}
|
||||
<where>
|
||||
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
|
||||
@@ -212,7 +213,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
total_ipv4_out_speed as totalIpv4OutSpeed,
|
||||
total_ipv6_in_speed as totalIpv6InSpeed,
|
||||
total_ipv6_out_speed as totalIpv6OutSpeed,
|
||||
ipV6
|
||||
ipV6,
|
||||
ping_dropped as pingDropped
|
||||
from ${tableName}
|
||||
<where>
|
||||
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
|
||||
|
||||
Reference in New Issue
Block a user