connLinechartDetail.jsp
13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<%@ page contentType="text/html; charset=utf-8"%>
<style>
.form-control {
height: 30px;
}
</style>
<table width="100%">
<tr>
<th>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">日期</span>
<input type="text" id="time" style="width:100px"/>
</div>
<div class="input-group" style="float:left;width:350px">
<span class="input-group-addon">命令字</span>
<form id="wrap_search" style="margin-bottom:0px;">
<span class="input-icon" style="width:350px;">
<input type="text" placeholder="" class="search-input search-input form-control ui-autocomplete-input" id="command" autocomplete="on" data=""/>
<i class="ace-icon fa fa-search nav-search-icon"></i>
</span>
</form>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">返回码</span>
<select id="code" style="width:120px"><option value=''>All</option></select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">网络类型</span>
<select id="network">
<option value=''>All</option>
<c:forEach var="item" items="${model.networks}" varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
</th>
</tr>
<tr>
<th align=left>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">版本</span>
<select id="version" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.versions}" varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">连接类型</span>
<select id="connectionType" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.connectionTypes}"
varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">平台</span>
<select id="platform" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.platforms}"
varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">地区</span>
<select id="city" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.cities}" varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">运营商</span>
<select id="operator" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.operators}"
varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<input class="btn btn-primary btn-sm"
value=" 查询 " onclick="query()"
type="submit" /> <input class="btn btn-primary btn-sm" id="checkbox"
onclick="check()" type="checkbox" /> <label for="checkbox"
style="display: -webkit-inline-box">选择对比</label>
</th>
</tr>
</table>
<table id="history" style="display: none">
<tr>
<th>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">日期</span>
<input type="text" id="time2" style="width:100px"/>
</div>
<div class="input-group" style="float:left;width:350px">
<span class="input-group-addon">命令字</span>
<form id="wrap_search2" style="margin-bottom:0px;">
<span class="input-icon" style="width:350px;">
<input type="text" placeholder="input domain for search" class="search-input search-input form-control ui-autocomplete-input" id="command2" autocomplete="on" data=""/>
<i class="ace-icon fa fa-search nav-search-icon"></i>
</span>
</form>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">返回码</span>
<select id="code2" style="width:120px"><option value=''>All</option></select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">网络类型</span>
<select id="network2">
<option value=''>All</option>
<c:forEach var="item" items="${model.networks}" varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
</th>
</tr>
<tr>
<th align=left>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">版本</span>
<select id="version2" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.versions}" varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">连接类型</span>
<select id="connectionType2" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.connectionTypes}"
varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">平台</span>
<select id="platform2" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.platforms}"
varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">地区</span>
<select id="city2" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.cities}" varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
<div class="input-group" style="float:left;width:120px">
<span class="input-group-addon">运营商</span>
<select id="operator2" style="width: 100px;">
<option value=''>All</option>
<c:forEach var="item" items="${model.operators}"
varStatus="status">
<option value='${item.value.id}'>${item.value.name}</option>
</c:forEach>
</select>
</div>
</th>
</tr>
</table>
<div>
<label class="btn btn-info btn-sm"><input type="radio"
name="typeCheckbox" value="request">请求数
</label><label class="btn btn-info btn-sm"> <input type="radio"
name="typeCheckbox" value="success">成功率
</label><label class="btn btn-info btn-sm"> <input type="radio"
name="typeCheckbox" value="delay">成功延时
</label>
</div>
<div style="float: left; width: 100%;">
<div id="${model.lineChart.id}"></div>
</div>
<br/>
<h5 class="center text-success"><strong>点击展开,进行OLAP查询</strong></h5>
<table id="comparison_content" class="table table-striped table-condensed table-bordered table-hover">
<thead>
<tr>
<th class="right text-success">网络类型</th>
<th class="right text-success">版本</th>
<th class="right text-success">连接类型</th>
<th class="right text-success">平台</th>
<th class="right text-success">地区</th>
<th class="right text-success">运营商</th>
<th class="right"><a href="javascript:queryGroupBy('success');">成功率</a>(%)</th>
<th class="right"><a href="javascript:queryGroupBy('request');">总请求数</a></th>
<th class="right"><a href="javascript:queryGroupBy('delay');">成功平均延迟</a>(ms)</th>
<th class="right"><a href="javascript:queryGroupBy('requestPackage');">平均发包</a>(B)</th>
<th class="right"><a href="javascript:queryGroupBy('responsePackage');">平均回包</a>(B)</th>
</tr></thead>
<tbody>
<c:forEach var="item" items="${model.appDataDetailInfos}" varStatus="status">
<tr class="right">
<c:set var="networkCode" value="${item.network eq '-1' ? '' : item.network}"/>
<c:set var="appVersionCode" value="${item.appVersion eq '-1' ? '' : item.appVersion}"/>
<c:set var="channelCode" value="${item.connectType eq '-1' ? '' : item.connectType}"/>
<c:set var="platformCode" value="${item.platform eq '-1' ? '' : item.platform}"/>
<c:set var="cityCode" value="${item.city eq '-1' ? '' : item.city}"/>
<c:set var="operatorCode" value="${item.operator eq '-1' ? '' : item.operator}"/>
<c:set var="network" value="${model.networks[networkCode].name}"/>
<c:set var="appVersion" value="${model.versions[appVersionCode].name}"/>
<c:set var="channel" value="${model.connectionTypes[channelCode].name}"/>
<c:set var="platform" value="${model.platforms[platformCode].name}"/>
<c:set var="city" value="${model.cities[cityCode].name}"/>
<c:set var="operator" value="${model.operators[operatorCode].name}"/>
<c:choose>
<c:when test="${empty networkCode}">
<td><button class="btn btn-xs btn-info" onclick="query('network', '${networkCode}','${appVersionCode}','${channelCode}','${platformCode}','${cityCode}','${operatorCode}');">展开⬇</button></td>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${empty network}">
<td class="text-danger">Unknown [${networkCode}]</td>
</c:when>
<c:otherwise>
<td>${network}</td>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty appVersionCode}">
<td><button class="btn btn-xs btn-info" onclick="query('app-version', '${networkCode}','${appVersionCode}','${channelCode}','${platformCode}','${cityCode}','${operatorCode}');">展开⬇</button></td>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${empty appVersion}">
<td class="text-danger">Unknown [${appVersionCode}]</td>
</c:when>
<c:otherwise>
<td>${appVersion}</td>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty channelCode}">
<td><button class="btn btn-xs btn-info" onclick="query('connnect-type', '${networkCode}','${appVersionCode}','${channelCode}','${platformCode}','${cityCode}','${operatorCode}');">展开⬇</button></td>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${empty channel}">
<td class="text-danger">Unknown [${channelCode}]</td>
</c:when>
<c:otherwise>
<td>${channel}</td>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty platformCode}">
<td><button class="btn btn-xs btn-info" onclick="query('platform', '${networkCode}','${appVersionCode}','${channelCode}','${platformCode}','${cityCode}','${operatorCode}');">展开⬇</button></td>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${empty platform}">
<td class="text-danger">Unknown [${platformCode}]</td>
</c:when>
<c:otherwise>
<td>${platform}</td>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty cityCode}">
<td><button class="btn btn-xs btn-info" onclick="query('city', '${networkCode}','${appVersionCode}','${channelCode}','${platformCode}','${cityCode}','${operatorCode}');">展开⬇</button></td>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${empty city}">
<td class="text-danger">Unknown [${cityCode}]</td>
</c:when>
<c:otherwise>
<td>${city}</td>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty operatorCode}">
<td><button class="btn btn-xs btn-info" onclick="query('operator', '${networkCode}','${appVersionCode}','${channelCode}','${platformCode}','${cityCode}','${operatorCode}');">展开⬇</button></td>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${empty operator}">
<td class="text-danger">Unknown [${operatorCode}]</td>
</c:when>
<c:otherwise>
<td>${operator}</td>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<td>${w:format(item.successRatio,'#0.000')}%</td>
<td>${w:format(item.accessNumberSum,'#,###,###,###,##0')}</td>
<td>${w:format(item.responseTimeAvg,'###,##0.000')}</td>
<td>${w:format(item.requestPackageAvg,'#,###,###,###,##0')}</td>
<td>${w:format(item.responsePackageAvg,'#,###,###,###,##0')}</td>
</tr>
</c:forEach>
</tbody>
</table>