maliciousIpDetail.js
1.08 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
$(function () {
refreshTableDetail();
});
function refreshTableDetail() {
$("#detailTable").table({
url: contextPath + "maliciousIp/getDetail?ip="+$("#ip").val() + "&count="+$("#count").val() + "&timeType="+$("#timeType").val() + "×tamp="+$("#timestamp").val(),
dataType: 'json',
striped: true,
panelClass: "panel-success",
loadFilter: function (data) {
return defaultLoadFilter(data);
},
columns: [
{
title: "ip",
width: "100px",
field: "userIP"
},
{
title: "QPS",
width: "100",
field: "count"
},
{
title: "百分比",
width: "100",
field: "percent",
formatter: function (value, rowData, rowIndex) {
return value + "%";
}
},
{
title: "method",
width: "300",
field: "method"
}]
});
}