statisticsDetail.jsp
6.57 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
<%@ page session="false" language="java" pageEncoding="UTF-8" %>
<style>
.tab-content>.active {
display: flex;
}
.dataTables_wrapper {
width: 100%;
}
</style>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" style="height:50px;">
<li class="text-right" id="li-all"><a href="#tabContent-all" data-toggle="tab"><strong>访问情况</strong></a></li>
<li class="text-right" id="li-code"><a href="#tabContent-code" data-toggle="tab"><strong>返回码统计</strong></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="tabContent-all">
<table class="table table-striped table-condensed table-hover table-bordered" id="contents-all" style="width:100%">
<thead>
<tr>
<th width="20%"><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=command">命令字</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=domain">项目</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=bu">BU</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=department">部门</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=count">访问量</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=transactionCount">后端访问量</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=countComparison">访问量对比(%)</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=avg">平均延时(ms)</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=transactionAvg">后端平均延时(ms)</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=avgComparison">延时对比(%)</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=success">平均成功率(%)</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=request">平均发包(B)</th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=response">平均回包(B)</th>
</tr>
</thead>
<tbody>
<c:forEach var="entry" items="${model.displayCommands.commands}" varStatus="status">
<tr><td><a href="/cat/r/app?query1=${payload.day};${entry.value.id};;;;;;;;;" target="_blank">
<c:choose>
<c:when test="${not empty entry.value.title}">
${entry.value.title}
</c:when>
<c:otherwise>
${entry.value.name}
</c:otherwise>
</c:choose></a></td>
<c:choose>
<c:when test="${not empty entry.value.domain}">
<td>
${entry.value.domain}</td>
</c:when>
<c:otherwise>
<td>无</td>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${entry.value.bu != null}">
<td>
${entry.value.bu}</td>
</c:when>
<c:otherwise>
<td>无</td>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${entry.value.department != null}">
<td>
${entry.value.department}</td>
</c:when>
<c:otherwise>
<td>无</td>
</c:otherwise>
</c:choose>
<td class="right">${w:format(entry.value.count,'#,###,###,###,##0')}</td>
<td class="right">${w:format(entry.value.transactionCount,'#,###,###,###,##0')}</td>
<td class="right">${w:format(entry.value.countComparison,'#0.000')}</td>
<td class="right">${w:format(entry.value.avg,'#,###,###,###,##0.0')}</td>
<td class="right">${w:format(entry.value.transactionAvg,'#,###,###,###,##0.0')}</td>
<td class="right">${w:format(entry.value.avgComparison,'#0.000')}</td>
<td class="right">${w:format(entry.value.successRatio,'#0.000')}</td>
<td class="right">${w:format(entry.value.requestAvg,'#,###,###,###,##0.0')}</td>
<td class="right">${w:format(entry.value.responseAvg,'#,###,###,###,##0.0')}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="tab-pane" id="tabContent-code">
<table class="table table-striped table-condensed table-hover table-bordered" id="contents-code" style="width:100%">
<thead>
<tr>
<th width="20%"><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=command&type=code">命令字</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=domain&type=code">项目</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=bu&type=code">BU</a></th>
<th><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=department&type=code">部门</a></th>
<c:forEach var="code" items="${model.codeDistributions}">
<th style="width:50px;" class="right"><a href="/cat/r/app?op=statistics&domain=${model.domain}&day=${payload.day}&sort=${code}&type=code">${code}</a></th>
</c:forEach>
</tr>
</thead>
<tbody>
<c:forEach var="e" items="${model.displayCommands.commands}">
<c:set var="command" value="${model.displayCommands.commands[e.key]}" />
<tr><td><a href="/cat/r/app?op=piechart&query1=${payload.day};${e.value.id};;;;;;;;00:00;23:59" target="_blank">
<c:choose>
<c:when test="${not empty e.value.title }">
${e.value.title}
</c:when>
<c:otherwise>
${e.value.name}
</c:otherwise>
</c:choose></a></td>
<c:choose>
<c:when test="${not empty e.value.domain}">
<td>${e.value.domain}</td>
</c:when>
<c:otherwise>
<td>无</td>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${e.value.bu != null}">
<td>
${e.value.bu}</td>
</c:when>
<c:otherwise>
<td>无</td>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${e.value.department != null}">
<td>
${e.value.department}</td>
</c:when>
<c:otherwise>
<td>无</td>
</c:otherwise>
</c:choose>
<c:forEach var="code" items="${model.codeDistributions}" varStatus="status">
<c:set var="data" value="${command.codes[code]}" />
<c:choose>
<c:when test="${data == null}">
<td class="right">0</td>
</c:when>
<c:otherwise>
<td data-rel="tooltip" data-placement="left" title="${command.codes[code].title}" class="right">${w:format(command.codes[code].count,'#,###,###,###,##0')}</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>