This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/test/views/charts2/charts/linkMonitor/MockData/LinkDirectionGrid.js

33 lines
43 KiB
JavaScript
Raw Normal View History

2023-02-27 16:01:25 +08:00
export const mockData = {
common: {
data1: {
2023-08-28 18:02:25 +08:00
status: 200,
2023-08-30 10:28:45 +08:00
data: { code: 200, queryKey: '610b4a743fa62b58cf5d70dab84b8b6f', success: true, message: null, statistics: { elapsed: 5, rows_read: 14027, bytes_read: 1416727, result_size: 25460, result_rows: 101 }, job: null, formatType: 'json', meta: [{ name: 'out_link_id', type: 'long', category: 'Dimension' }, { name: 'in_link_id', type: 'long', 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: [{ outLinkId: '0', inLinkId: '0', totalBytes: '434765502450', totalBitsRate: 966145560.96, outBytes: '363544351329', outBitsRate: 807876336.32, inBytes: '41292202303', inBitsRate: 91760449.6, establishLatencyMs: 90.0669, httpResponseLatency: 184.3881, sslConLatency: 0, tcpLostlenPercent: 0.0101, pktRetransPercent: 0.0226 }, { outLinkId: '256', inLinkId: '257', totalBytes: '534995002', totalBitsRate: 1188877.76, outBytes: '447206140', outBitsRate: 993791.44, inBytes: '36435444', inBitsRate: 80967.68, establishLatencyMs: 75.5612, httpResponseLatency: 240.396, sslConLatency: 0, tcpLostlenPercent: 0.0029, pktRetransPercent: 0.0111, usageMore90: false, score: 6, scoreLow3: false }, { outLinkId: '512', inLinkId: '257', totalBytes: '382047632', totalBitsRate: 848994.72, outBytes: '352856271', outBitsRate: 784125.04, inBytes: '18385230', inBitsRate: 40856.08, establishLatencyMs: 98.59, httpResponseLatency: 100.5516, sslConLatency: 0, tcpLostlenPercent: 0.0127, pktRetransPercent: 0.0137, usageMore90: false, score: 6, scoreLow3: false }, { outLinkId: '768', inLinkId: '257', totalBytes: '301459240', totalBitsRate: 669909.44, outBytes: '245480754', outBitsRate: 545512.8, inBytes: '34220091', inBitsRate: 76044.64, establishLatencyMs: 108.9343, httpResponseLatency: 160.9725, sslConLatency: 0, tcpLostlenPercent: 0.0022, pktRetransPercent: 0.0173, usageMore90: false, score: 5, scoreLow3: false }, { outLinkId: '1024', inLinkId: '257', totalBytes: '428032397', totalBitsRate: 951183.12, outBytes: '376399588', outBitsRate: 836443.52, inBytes: '37870336', inBitsRate: 84156.32, establishLatencyMs: 88.6706, httpResponseLatency: 131.524, sslConLatency: 0, tcpLostlenPercent: 0.0019, pktRetransPercent: 0.0126, usageMore90: false, score: 6, scoreLow3: false }, { outLinkId: '1280', inLinkId: '257', totalBytes: '593122664', totalBitsRate: 1318050.4, outBytes: '555791176', outBitsRate: 1235091.52, inBytes: '18981210', inBitsRate: 42180.48, establishLatencyMs: 101.3537, httpResponseLatency: 254.3362, sslConLatency: 0, tcpLostlenPercent: 0.0044, pktRetransPercent: 0.0135, usageMore90: false, score: 5, scoreLow3: false }, { outLinkId: '1536', inLinkId: '257', totalBytes: '377183386', totalBitsRate: 838185.28, outBytes: '327968719', outBitsRate: 728819.36, inBytes: '24566904', inBitsRate: 54593.12, establishLatencyMs: 79.7386, httpResponseLatency: 95.8814, sslConLatency: 0, tcpLostlenPercent: 0.012, pktRetransPercent: 0.0086, usageMore90: false, score: 6, scoreLow3: false }, { outLinkId: '1792', inLinkId: '257', totalBytes: '301778612', totalBitsRate: 670619.12, outBytes: '280107213', outBitsRate: 622460.48, inBytes: '10638455', inBitsRate: 23641.04, establishLatencyMs: 91.1497, httpResponseLatency: 152.3226, sslConLatency: 0, tcpLostlenPercent: 0.0013, pktRetransPercent: 0.0181, usageMore90: false, score: 5, scoreLow3: false }, { outLinkId: '2048', inLinkId: '257', totalBytes: '412927429', totalBitsRate: 917616.48, outBytes: '367353610', outBitsRate: 816341.36, inBytes: '29730481', inBitsRate: 66067.76, establishLatencyMs: 76.6838, httpResponseLatency: 94.3495, sslConLatency: 0, tcpLostlenPercent: 0.0053, pktRetransPercent: 0.0198, usageMore90: fals
2023-02-27 16:01:25 +08:00
},
data2: {
2023-08-28 18:02:25 +08:00
status: 200,
2023-08-30 10:28:45 +08:00
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: '西宁', totalByt
2023-02-27 16:01:25 +08:00
}
},
empty: {
data1: {
2023-08-28 18:02:25 +08:00
status: 200,
data: { code: 200, data: { resultType: 'table', result: [] }, msg: 'OK' }
2023-02-27 16:01:25 +08:00
},
data2: {
2023-08-28 18:02:25 +08:00
status: 200,
data: { code: 200, data: { resultType: 'table', result: [] }, msg: 'OK' }
2023-02-27 16:01:25 +08:00
}
},
boundary: {
data1: {
2023-08-28 18:02:25 +08:00
status: 200,
2023-02-27 16:01:25 +08:00
data: {}
},
data2: {
2023-08-28 18:02:25 +08:00
status: 200,
2023-02-27 16:01:25 +08:00
data: {}
}
}
}