diff --git a/test/views/charts2/charts/linkMonitor/LinkDirectionGrid.test.js b/test/views/charts2/charts/linkMonitor/LinkDirectionGrid.test.js index 06487264..d26e3546 100644 --- a/test/views/charts2/charts/linkMonitor/LinkDirectionGrid.test.js +++ b/test/views/charts2/charts/linkMonitor/LinkDirectionGrid.test.js @@ -148,16 +148,16 @@ describe('views/charts2/charts/linkMonitor/LinkDirectionGrid.vue测试', () => { const packetRetrans331 = wrapper.find('[test-id="packetRetrans3-3-1"]') expect(toNextHop3.text()).toBe('西宁') - expect(toNextHop1.text()).toBe('太原') + expect(toNextHop1.text()).toBe('西安') expect(egressUsage331.text()).toBe('< 0.01%') expect(ingressUsage331.text()).toBe('< 0.01%') - expect(totalBitsRate331.text()).toBe('6.50Mbps') - expect(score331.text()).toBe('5') - expect(tcp331.text()).toBe('89ms') - expect(http331.text()).toBe('151ms') + expect(totalBitsRate331.text()).toBe('2.73Mbps') + expect(score331.text()).toBe('6') + expect(tcp331.text()).toBe('94ms') + expect(http331.text()).toBe('168ms') expect(ssl331.text()).toBe('<1ms') - expect(packetLoss331.text()).toBe('0.53%') - expect(packetRetrans331.text()).toBe('2.24%') + expect(packetLoss331.text()).toBe('0.48%') + expect(packetRetrans331.text()).toBe('1.39%') resolve() }, 200)) }) diff --git a/test/views/charts2/charts/linkMonitor/MockData/LinkBlock.js b/test/views/charts2/charts/linkMonitor/MockData/LinkBlock.js index 41fed3fc..c80161a4 100644 --- a/test/views/charts2/charts/linkMonitor/MockData/LinkBlock.js +++ b/test/views/charts2/charts/linkMonitor/MockData/LinkBlock.js @@ -2,11 +2,115 @@ export const mockData = { common: { data1: { status: 200, - data: { code: 200, queryKey: '549b4c3bcabf0feee193b834671879de', success: true, message: null, statistics: { elapsed: 3, rows_read: 11480, bytes_read: 459200, result_size: 1214, result_rows: 21 }, job: null, formatType: 'json', meta: [{ name: 'link_id', type: 'string', category: 'Dimension' }, { name: 'out_bytes', type: 'long', category: 'Metric' }, { name: 'in_bytes', type: 'long', category: 'Metric' }], data: { resultType: 'table', result: [{ linkId: '257', outBytes: '0', outBitsRate: 0, inBytes: '493739879', inBitsRate: 1097199.76 }, { linkId: '256', outBytes: '4147998874', outBitsRate: 9217775.28, inBytes: '0', inBitsRate: 0 }, { linkId: '1024', outBytes: '4229808296', outBitsRate: 9399574, inBytes: '0', inBitsRate: 0 }, { linkId: '1793', outBytes: '0', outBitsRate: 0, inBytes: '604840505', inBitsRate: 1344090 }, { linkId: '2817', outBytes: '0', outBitsRate: 0, inBytes: '430811638', inBitsRate: 957359.2 }, { linkId: '0', outBytes: '819878366014', outBitsRate: 1821951924.48, inBytes: '140774357362', inBitsRate: 312831905.28 }, { linkId: '1281', outBytes: '0', outBitsRate: 0, inBytes: '544675122', inBitsRate: 1210389.12 }, { linkId: '2049', outBytes: '0', outBitsRate: 0, inBytes: '711346274', inBitsRate: 1580769.52 }, { linkId: '1536', outBytes: '4195896971', outBitsRate: 9324215.52, inBytes: '0', inBitsRate: 0 }, { linkId: '2305', outBytes: '0', outBitsRate: 0, inBytes: '524865003', inBitsRate: 1166366.64 }, { linkId: '1792', outBytes: '4145790227', outBitsRate: 9212867.2, inBytes: '0', inBitsRate: 0 }, { linkId: '1025', outBytes: '0', outBitsRate: 0, inBytes: '492227445', inBitsRate: 1093838.8 }, { linkId: '2816', outBytes: '4000074817', outBitsRate: 8889055.12, inBytes: '0', inBitsRate: 0 }, { linkId: '513', outBytes: '0', outBitsRate: 0, inBytes: '1444814826', inBitsRate: 3210699.6 }, { linkId: '768', outBytes: '4370006099', outBitsRate: 9711124.64, inBytes: '0', inBitsRate: 0 }, { linkId: '512', outBytes: '3894190397', outBitsRate: 8653756.4, inBytes: '0', inBitsRate: 0 }, { linkId: '769', outBytes: '0', outBitsRate: 0, inBytes: '1877580759', inBitsRate: 4172401.68 }, { linkId: '2304', outBytes: '3767761711', outBitsRate: 8372803.84, inBytes: '0', inBitsRate: 0 }, { linkId: '1537', outBytes: '0', outBitsRate: 0, inBytes: '367986916', inBitsRate: 817748.72 }, { linkId: '1280', outBytes: '4040444894', outBitsRate: 8978766.4, inBytes: '0', inBitsRate: 0 }, { linkId: '2048', outBytes: '4682050724', outBitsRate: 10404557.2, inBytes: '0', inBitsRate: 0 }] }, originalUrl: 'http://192.168.44.55:9999?query=SELECT%20arrayJoin%28splitByChar%28%27_%27%2C%20concat%28toString%28common_out_link_id%29%2C%20%27_%27%2C%20toString%28common_in_link_id%29%29%29%29%20AS%20link_id%2CSUM%28IF%28toString%28common_out_link_id%29%20%3D%20link_id%2C%20traffic_outbound_byte%2C%200%29%29%20AS%20out_bytes%2CSUM%28IF%28toString%28common_in_link_id%29%20%3D%20link_id%2C%20traffic_inbound_byte%2C%200%29%29%20AS%20in_bytes%20FROM%20metric_link%20WHERE%20stat_time%20%3E%3D%201675303793%20AND%20stat_time%20%3C%201675307393%20GROUP%20BY%20link_id&format=json&option=real-time', msg: 'OK' } + data: { + code: 200, + data: { + resultType: 'table', + result: [ + { linkId: '257', outBytes: '0', outBitsRate: 0, inBytes: '493739879', inBitsRate: 1097199.76 }, + { linkId: '256', outBytes: '4147998874', outBitsRate: 9217775.28, inBytes: '0', inBitsRate: 0 }, + { linkId: '1024', outBytes: '4229808296', outBitsRate: 9399574, inBytes: '0', inBitsRate: 0 }, + { linkId: '1793', outBytes: '0', outBitsRate: 0, inBytes: '604840505', inBitsRate: 1344090 }, + { linkId: '2817', outBytes: '0', outBitsRate: 0, inBytes: '430811638', inBitsRate: 957359.2 }, + { linkId: '0', outBytes: '819878366014', outBitsRate: 1821951924.48, inBytes: '140774357362', inBitsRate: 312831905.28 }, + { linkId: '1281', outBytes: '0', outBitsRate: 0, inBytes: '544675122', inBitsRate: 1210389.12 }, + { linkId: '2049', outBytes: '0', outBitsRate: 0, inBytes: '711346274', inBitsRate: 1580769.52 }, + { linkId: '1536', outBytes: '4195896971', outBitsRate: 9324215.52, inBytes: '0', inBitsRate: 0 }, + { linkId: '2305', outBytes: '0', outBitsRate: 0, inBytes: '524865003', inBitsRate: 1166366.64 }, + { linkId: '1792', outBytes: '4145790227', outBitsRate: 9212867.2, inBytes: '0', inBitsRate: 0 }, + { linkId: '1025', outBytes: '0', outBitsRate: 0, inBytes: '492227445', inBitsRate: 1093838.8 }, + { linkId: '2816', outBytes: '4000074817', outBitsRate: 8889055.12, inBytes: '0', inBitsRate: 0 }, + { linkId: '513', outBytes: '0', outBitsRate: 0, inBytes: '1444814826', inBitsRate: 3210699.6 }, + { linkId: '768', outBytes: '4370006099', outBitsRate: 9711124.64, inBytes: '0', inBitsRate: 0 }, + { linkId: '512', outBytes: '3894190397', outBitsRate: 8653756.4, inBytes: '0', inBitsRate: 0 }, + { linkId: '769', outBytes: '0', outBitsRate: 0, inBytes: '1877580759', inBitsRate: 4172401.68 }, + { linkId: '2304', outBytes: '3767761711', outBitsRate: 8372803.84, inBytes: '0', inBitsRate: 0 }, + { linkId: '1537', outBytes: '0', outBitsRate: 0, inBytes: '367986916', inBitsRate: 817748.72 }, + { linkId: '1280', outBytes: '4040444894', outBitsRate: 8978766.4, inBytes: '0', inBitsRate: 0 }, + { linkId: '2048', outBytes: '4682050724', outBitsRate: 10404557.2, inBytes: '0', inBitsRate: 0 } + ] + } + } }, data2: { status: 200, - data: { code: 200, queryKey: 'ee2e820b1275748167cdee82b2b4ea40', success: true, message: null, statistics: { elapsed: 3, rows_read: 11480, bytes_read: 618564, result_size: 1053, result_rows: 10 }, job: null, formatType: 'json', meta: [{ name: 'out_link_direction', type: 'string', category: 'Dimension' }, { name: 'in_link_direction', type: 'string', category: 'Dimension' }, { name: 'out_bytes', type: 'long', category: 'Metric' }, { name: 'in_bytes', type: 'long', category: 'Metric' }], data: { resultType: 'table', result: [{ outLinkDirection: '太原', inLinkDirection: '西宁', outBytes: '2407509269', outBitsRate: 5350020.56, inBytes: '193368911', inBitsRate: 429708.72 }, { outLinkDirection: '西安', inLinkDirection: '西安', outBytes: '3609358392', outBitsRate: 8020796.4, inBytes: '345009143', inBitsRate: 766686.96 }, { outLinkDirection: '西宁', inLinkDirection: '西安', outBytes: '1273508499', outBitsRate: 2830018.88, inBytes: '122646511', inBitsRate: 272547.84 }, { outLinkDirection: '太原', inLinkDirection: '太原', outBytes: '14840136119', outBitsRate: 32978080.24, inBytes: '3386427658', inBitsRate: 7525394.8 }, { outLinkDirection: '西安', inLinkDirection: '太原', outBytes: '7070361369', outBitsRate: 15711914.16, inBytes: '1853445429', inBitsRate: 4118767.6 }, { outLinkDirection: '西宁', inLinkDirection: '太原', outBytes: '2619231460', outBitsRate: 5820514.32, inBytes: '291561196', inBitsRate: 647913.76 }, { outLinkDirection: '', inLinkDirection: '', outBytes: '409939183007', outBitsRate: 910975962.24, inBytes: '70387178681', inBitsRate: 156415952.64 }, { outLinkDirection: '太原', inLinkDirection: '西安', outBytes: '7808050741', outBitsRate: 17351223.84, inBytes: '1001570985', inBitsRate: 2225713.28 }, { outLinkDirection: '西宁', inLinkDirection: '西宁', outBytes: '337068337', outBitsRate: 749040.72, inBytes: '165230290', inBitsRate: 367178.4 }, { outLinkDirection: '西安', inLinkDirection: '西宁', outBytes: '1508798824', outBitsRate: 3352886.24, inBytes: '133628244', inBitsRate: 296951.68 }] }, originalUrl: 'http://192.168.44.55:9999?query=SELECT%20out_link_direction%20AS%20out_link_direction%2C%20in_link_direction%20AS%20in_link_direction%2C%20SUM%28traffic_outbound_byte%29%20AS%20out_bytes%2C%20SUM%28traffic_inbound_byte%29%20AS%20in_bytes%20FROM%20metric_link%20WHERE%20stat_time%20%3E%3D%201675303793%20AND%20stat_time%20%3C%201675307393%20GROUP%20BY%20out_link_direction%2C%20in_link_direction&format=json&option=real-time', msg: 'OK' } + data: { + code: 200, + data: { + resultType: 'table', + result: [{ + outLinkDirection: '太原', + inLinkDirection: '西宁', + outBytes: '2407509269', + outBitsRate: 5350020.56, + inBytes: '193368911', + inBitsRate: 429708.72 + }, { + outLinkDirection: '西安', + inLinkDirection: '西安', + outBytes: '3609358392', + outBitsRate: 8020796.4, + inBytes: '345009143', + inBitsRate: 766686.96 + }, { + outLinkDirection: '西宁', + inLinkDirection: '西安', + outBytes: '1273508499', + outBitsRate: 2830018.88, + inBytes: '122646511', + inBitsRate: 272547.84 + }, { + outLinkDirection: '太原', + inLinkDirection: '太原', + outBytes: '14840136119', + outBitsRate: 32978080.24, + inBytes: '3386427658', + inBitsRate: 7525394.8 + }, { + outLinkDirection: '西安', + inLinkDirection: '太原', + outBytes: '7070361369', + outBitsRate: 15711914.16, + inBytes: '1853445429', + inBitsRate: 4118767.6 + }, { + outLinkDirection: '西宁', + inLinkDirection: '太原', + outBytes: '2619231460', + outBitsRate: 5820514.32, + inBytes: '291561196', + inBitsRate: 647913.76 + }, { + outLinkDirection: '', + inLinkDirection: '', + outBytes: '409939183007', + outBitsRate: 910975962.24, + inBytes: '70387178681', + inBitsRate: 156415952.64 + }, { + outLinkDirection: '太原', + inLinkDirection: '西安', + outBytes: '7808050741', + outBitsRate: 17351223.84, + inBytes: '1001570985', + inBitsRate: 2225713.28 + }, { + outLinkDirection: '西宁', + inLinkDirection: '西宁', + outBytes: '337068337', + outBitsRate: 749040.72, + inBytes: '165230290', + inBitsRate: 367178.4 + }, { + outLinkDirection: '西安', + inLinkDirection: '西宁', + outBytes: '1508798824', + outBitsRate: 3352886.24, + inBytes: '133628244', + inBitsRate: 296951.68 + }] + } + } } }, empty: { @@ -285,4 +389,4 @@ export const mockData = { } } -export const linkInfoData = [{ originalLinkId: '256', linkId: 'Hundredgige1', direction: 'out', nextHop: '西安', bandwidth: 100000000000 }, { originalLinkId: '257', linkId: 'Hundredgige1', direction: 'in', nextHop: '西安', bandwidth: 100000000000 }, { originalLinkId: '512', linkId: 'Hundredgige2', direction: 'out', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '513', linkId: 'Hundredgige2', direction: 'in', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '768', linkId: 'Hundredgige3', direction: 'out', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '769', linkId: 'Hundredgige3', direction: 'in', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '1024', linkId: 'Hundredgige4', direction: 'out', nextHop: '西宁', bandwidth: 100000000000 }, { originalLinkId: '1025', linkId: 'Hundredgige4', direction: 'in', nextHop: '西宁', bandwidth: 100000000000 }, { originalLinkId: '1280', linkId: 'Hundredgige5', direction: 'out', nextHop: '西安', bandwidth: 100000000000 }, { originalLinkId: '1281', linkId: 'Hundredgige5', direction: 'in', nextHop: '西安', bandwidth: 100000000000 }, { originalLinkId: '1536', linkId: 'Hundredgige6', direction: 'out', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '1537', linkId: 'Hundredgige6', direction: 'in', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '1792', linkId: 'Hundredgige7', direction: 'out', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '1793', linkId: 'Hundredgige7', direction: 'in', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '2048', linkId: 'Hundredgige8', direction: 'out', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '2049', linkId: 'Hundredgige8', direction: 'in', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '2304', linkId: 'Hundredgige9', direction: 'out', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '2305', linkId: 'Hundredgige9', direction: 'in', nextHop: '太原', bandwidth: 100000000000 }, { originalLinkId: '2816', linkId: 'Hundredgige10', direction: 'out', nextHop: '西安', bandwidth: 100000000000 }, { originalLinkId: '2817', linkId: 'Hundredgige10', direction: 'in', nextHop: '西安', bandwidth: 100000000000 }] +export const linkInfoData = [{ linkId: 256, interfaceName: 'Hundredgige1', direction: 0, peerCity: '西安', bandwidth: 100000000000 }, { linkId: 257, interfaceName: 'Hundredgige1', direction: 1, peerCity: '西安', bandwidth: 100000000000 }, { linkId: 512, interfaceName: 'Hundredgige2', direction: 0, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 513, interfaceName: 'Hundredgige2', direction: 1, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 768, interfaceName: 'Hundredgige3', direction: 0, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 769, interfaceName: 'Hundredgige3', direction: 1, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 1024, interfaceName: 'Hundredgige4', direction: 0, peerCity: '西宁', bandwidth: 100000000000 }, { linkId: 1025, interfaceName: 'Hundredgige4', direction: 1, peerCity: '西宁', bandwidth: 100000000000 }, { linkId: 1280, interfaceName: 'Hundredgige5', direction: 0, peerCity: '西安', bandwidth: 100000000000 }, { linkId: 1281, interfaceName: 'Hundredgige5', direction: 1, peerCity: '西安', bandwidth: 100000000000 }, { linkId: 1536, interfaceName: 'Hundredgige6', direction: 0, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 1537, interfaceName: 'Hundredgige6', direction: 1, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 1792, interfaceName: 'Hundredgige7', direction: 0, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 1793, interfaceName: 'Hundredgige7', direction: 1, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 2048, interfaceName: 'Hundredgige8', direction: 0, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 2049, interfaceName: 'Hundredgige8', direction: 1, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 2304, interfaceName: 'Hundredgige9', direction: 0, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 2305, interfaceName: 'Hundredgige9', direction: 1, peerCity: '太原', bandwidth: 100000000000 }, { linkId: 2816, interfaceName: 'Hundredgige10', direction: 0, peerCity: '西安', bandwidth: 100000000000 }, { linkId: 2817, interfaceName: 'Hundredgige10', direction: 1, peerCity: '西安', bandwidth: 100000000000 }] diff --git a/test/views/charts2/charts/linkMonitor/MockData/LinkDirectionGrid.js b/test/views/charts2/charts/linkMonitor/MockData/LinkDirectionGrid.js index 1f2d2f00..6d45d271 100644 --- a/test/views/charts2/charts/linkMonitor/MockData/LinkDirectionGrid.js +++ b/test/views/charts2/charts/linkMonitor/MockData/LinkDirectionGrid.js @@ -6,7 +6,23 @@ export const mockData = { }, data2: { status: 200, - data: { code: 200, queryKey: '3b148e81873eb2621bbd77fffbd0a008', success: true, message: null, statistics: { elapsed: 4, rows_read: 14027, bytes_read: 1611437, result_size: 2393, result_rows: 9 }, job: null, formatType: 'json', meta: [{ name: 'out_link_direction', type: 'string', category: 'Dimension' }, { name: 'in_link_direction', type: 'string', category: 'Dimension' }, { name: 'total_bytes', type: 'long', category: 'Metric' }, { name: 'out_bytes', type: 'long', category: 'Metric' }, { name: 'in_bytes', type: 'long', category: 'Metric' }, { name: 'establish_latency_ms', type: 'double', category: 'Metric' }, { name: 'http_response_latency', type: 'double', category: 'Metric' }, { name: 'ssl_con_latency', type: 'double', category: 'Metric' }, { name: 'tcp_lostlen_percent', type: 'double', category: 'Metric' }, { name: 'pkt_retrans_percent', type: 'double', category: 'Metric' }], data: { resultType: 'table', result: [{ outLinkDirection: '太原', inLinkDirection: '太原', totalBytes: '16535105415', totalBitsRate: 36744678.72, outBytes: '14184016558', outBitsRate: 31520036.8, inBytes: '1688597600', inBitsRate: 3752439.12, establishLatencyMs: 88.0242, httpResponseLatency: 203.7159, sslConLatency: 0, tcpLostlenPercent: 0.0054, pktRetransPercent: 0.0166, usageMore90: false, score: 5, scoreLow3: false }, { outLinkDirection: '西安', inLinkDirection: '太原', totalBytes: '7944206231', totalBitsRate: 17653791.6, outBytes: '6777682761', outBitsRate: 15061517.28, inBytes: '885954326', inBitsRate: 1968787.36, establishLatencyMs: 83.1217, httpResponseLatency: 157.7391, sslConLatency: 0, tcpLostlenPercent: 0.0046, pktRetransPercent: 0.0173, usageMore90: false, score: 6, scoreLow3: false }, { outLinkDirection: '西宁', inLinkDirection: '太原', totalBytes: '2857306724', totalBitsRate: 6349570.48, outBytes: '2128232085', outBitsRate: 4729404.64, inBytes: '404099210', inBitsRate: 897998.24, establishLatencyMs: 98.8892, httpResponseLatency: 136.1593, sslConLatency: 0, tcpLostlenPercent: 0.0068, pktRetransPercent: 0.0147, usageMore90: false, score: 6, scoreLow3: false }, { outLinkDirection: '太原', inLinkDirection: '西安', totalBytes: '6373421289', totalBitsRate: 14163158.4, outBytes: '5353700094', outBitsRate: 11897111.36, inBytes: '734848747', inBitsRate: 1632997.2, establishLatencyMs: 92.7275, httpResponseLatency: 137.1145, sslConLatency: 0, tcpLostlenPercent: 0.0057, pktRetransPercent: 0.0162, usageMore90: false, score: 6, scoreLow3: false }, { outLinkDirection: '西安', inLinkDirection: '西安', totalBytes: '4103560375', totalBitsRate: 9119023.04, outBytes: '3571039189', outBitsRate: 7935642.64, inBytes: '377089010', inBitsRate: 837975.6, establishLatencyMs: 85.6573, httpResponseLatency: 201.6159, sslConLatency: 0, tcpLostlenPercent: 0.0069, pktRetransPercent: 0.0144, usageMore90: false, score: 6, scoreLow3: false }, { outLinkDirection: '西宁', inLinkDirection: '西安', totalBytes: '1183207657', totalBitsRate: 2629350.32, outBytes: '1058261055', outBitsRate: 2351691.2, inBytes: '87176633', inBitsRate: 193725.84, establishLatencyMs: 91.4916, httpResponseLatency: 117.5389, sslConLatency: 0, tcpLostlenPercent: 0.0024, pktRetransPercent: 0.0104, usageMore90: false, score: 6, scoreLow3: false }, { outLinkDirection: '太原', inLinkDirection: '西宁', totalBytes: '2924709918', totalBitsRate: 6499355.36, outBytes: '2584008489', outBitsRate: 5742241.12, inBytes: '181573168', inBitsRate: 403495.92, establishLatencyMs: 89.4893, httpResponseLatency: 151.1124, sslConLatency: 0, tcpLostlenPercent: 0.0053, pktRetransPercent: 0.0224, usageMore90: false, score: 5, scoreLow3: false }, { outLinkDirection: '西安', inLinkDirection: '西宁', totalBytes: '1227926954', totalBitsRate: 2728726.56, outBytes: '1085741718', outBitsRate: 2412759.36, inBytes: '102066992', inBitsRate: 226815.52, establishLatencyMs: 93.9175, httpResponseLatency: 168.1369, sslConLatency: 0, tcpLostlenPercent: 0.0048, pktRetransPercent: 0.0139, usageMore90: false, score: 6, scoreLow3: false }, { outLinkDirection: '西宁', inLinkDirection: '西宁', totalBytes: '309813302', totalBitsRate: 688474, outBytes: '275012816', outBitsRate: 611139.6, inBytes: '14787925', inBitsRate: 32862.08, establishLatencyMs: 69.9228, httpResponseLatency: 224.0711, sslConLatency: 0, tcpLostlenPercent: 0.0071, pktRetransPercent: 0.0086, usageMore90: false, score: 6, scoreLow3: false }] }, originalUrl: 'http://192.168.44.55:9999?query=SELECT%20out_link_direction%20AS%20out_link_direction%2Cin_link_direction%20AS%20in_link_direction%2CSUM%28common_c2s_byte_num%20%2B%20common_s2c_byte_num%29%20AS%20total_bytes%2CSUM%28traffic_outbound_byte%29%20AS%20out_bytes%2CSUM%28traffic_inbound_byte%29%20AS%20in_bytes%2CROUND%28AVG%28avg_establish_latency_ms%29%2C%204%29%20AS%20establish_latency_ms%2CROUND%28AVG%28avg_http_response_latency_ms%29%2C%204%29%20AS%20http_response_latency%2CROUND%28AVG%28avg_ssl_con_latency_ms%29%2C%204%29%20AS%20ssl_con_latency%2CROUND%28AVG%28tcp_lostlen_ratio%29%2C%204%29%20AS%20tcp_lostlen_percent%2CROUND%28AVG%28pkt_retrans_ratio%29%2C%204%29%20AS%20pkt_retrans_percent%20FROM%20metric_link%20WHERE%20stat_time%20%3E%3D%201675387137%20AND%20stat_time%20%3C%201675390737%20AND%20%28notEmpty%28out_link_direction%29%20AND%20notEmpty%28in_link_direction%29%29%20GROUP%20BY%20out_link_direction%2Cin_link_direction&format=json&option=real-time', msg: 'OK' } + data: { + code: 200, + data: { + resultType: 'table', + result: [ + { outLinkDirection: '太原', inLinkDirection: '太原', totalBytes: '16535105415', totalBitsRate: 36744678.72, outBytes: '14184016558', outBitsRate: 31520036.8, inBytes: '1688597600', inBitsRate: 3752439.12, establishLatencyMs: 88.0242, httpResponseLatency: 203.7159, sslConLatency: 0, tcpLostlenPercent: 0.0054, pktRetransPercent: 0.0166, usageMore90: false, score: 5, scoreLow3: false }, + { outLinkDirection: '西安', inLinkDirection: '太原', totalBytes: '7944206231', totalBitsRate: 17653791.6, outBytes: '6777682761', outBitsRate: 15061517.28, inBytes: '885954326', inBitsRate: 1968787.36, establishLatencyMs: 83.1217, httpResponseLatency: 157.7391, sslConLatency: 0, tcpLostlenPercent: 0.0046, pktRetransPercent: 0.0173, usageMore90: false, score: 6, scoreLow3: false }, + { outLinkDirection: '西宁', inLinkDirection: '太原', totalBytes: '2857306724', totalBitsRate: 6349570.48, outBytes: '2128232085', outBitsRate: 4729404.64, inBytes: '404099210', inBitsRate: 897998.24, establishLatencyMs: 98.8892, httpResponseLatency: 136.1593, sslConLatency: 0, tcpLostlenPercent: 0.0068, pktRetransPercent: 0.0147, usageMore90: false, score: 6, scoreLow3: false }, + { outLinkDirection: '太原', inLinkDirection: '西安', totalBytes: '6373421289', totalBitsRate: 14163158.4, outBytes: '5353700094', outBitsRate: 11897111.36, inBytes: '734848747', inBitsRate: 1632997.2, establishLatencyMs: 92.7275, httpResponseLatency: 137.1145, sslConLatency: 0, tcpLostlenPercent: 0.0057, pktRetransPercent: 0.0162, usageMore90: false, score: 6, scoreLow3: false }, + { outLinkDirection: '西安', inLinkDirection: '西安', totalBytes: '4103560375', totalBitsRate: 9119023.04, outBytes: '3571039189', outBitsRate: 7935642.64, inBytes: '377089010', inBitsRate: 837975.6, establishLatencyMs: 85.6573, httpResponseLatency: 201.6159, sslConLatency: 0, tcpLostlenPercent: 0.0069, pktRetransPercent: 0.0144, usageMore90: false, score: 6, scoreLow3: false }, + { outLinkDirection: '西宁', inLinkDirection: '西安', totalBytes: '1183207657', totalBitsRate: 2629350.32, outBytes: '1058261055', outBitsRate: 2351691.2, inBytes: '87176633', inBitsRate: 193725.84, establishLatencyMs: 91.4916, httpResponseLatency: 117.5389, sslConLatency: 0, tcpLostlenPercent: 0.0024, pktRetransPercent: 0.0104, usageMore90: false, score: 6, scoreLow3: false }, + { outLinkDirection: '太原', inLinkDirection: '西宁', totalBytes: '2924709918', totalBitsRate: 6499355.36, outBytes: '2584008489', outBitsRate: 5742241.12, inBytes: '181573168', inBitsRate: 403495.92, establishLatencyMs: 89.4893, httpResponseLatency: 151.1124, sslConLatency: 0, tcpLostlenPercent: 0.0053, pktRetransPercent: 0.0224, usageMore90: false, score: 5, scoreLow3: false }, + { outLinkDirection: '西安', inLinkDirection: '西宁', totalBytes: '1227926954', totalBitsRate: 2728726.56, outBytes: '1085741718', outBitsRate: 2412759.36, inBytes: '102066992', inBitsRate: 226815.52, establishLatencyMs: 93.9175, httpResponseLatency: 168.1369, sslConLatency: 0, tcpLostlenPercent: 0.0048, pktRetransPercent: 0.0139, usageMore90: false, score: 6, scoreLow3: false }, + { outLinkDirection: '西宁', inLinkDirection: '西宁', totalBytes: '309813302', totalBitsRate: 688474, outBytes: '275012816', outBitsRate: 611139.6, inBytes: '14787925', inBitsRate: 32862.08, establishLatencyMs: 69.9228, httpResponseLatency: 224.0711, sslConLatency: 0, tcpLostlenPercent: 0.0071, pktRetransPercent: 0.0086, usageMore90: false, score: 6, scoreLow3: false } + ] + } + } } }, empty: {