Authored by Xu

redis结构调整

@@ -16,7 +16,7 @@ function refreshTable() { @@ -16,7 +16,7 @@ function refreshTable() {
16 columns: [ 16 columns: [
17 { 17 {
18 title: "", 18 title: "",
19 - width:"50px", 19 + width:"20px",
20 field: "ip", 20 field: "ip",
21 formatter: function (value, rowData, rowIndex) { 21 formatter: function (value, rowData, rowIndex) {
22 var div = $("<div>"); 22 var div = $("<div>");
@@ -27,40 +27,53 @@ function refreshTable() { @@ -27,40 +27,53 @@ function refreshTable() {
27 }, 27 },
28 { 28 {
29 title: "ip", 29 title: "ip",
30 - width: "150px", 30 + width: "100px",
31 field: "ip" 31 field: "ip"
32 }, 32 },
33 { 33 {
34 - title: "QPS(分钟)",  
35 - width: "100",  
36 - field: "count",  
37 - sortable: true, 34 + title: "单IP总的访问次数",
  35 + width: "70",
  36 + field: "allCount",
38 }, 37 },
39 { 38 {
40 - title: "QPS(秒)",  
41 - width: "100",  
42 - field: "count",  
43 - sortable: true, 39 + title: "敏感接口访问次数",
  40 + width: "70",
  41 + field: "impCount",
  42 + },
  43 + {
  44 + title: "单ip访问次数占比",
  45 + width: "70",
  46 + field: "ipPrecent",
44 formatter: function (value, rowData, rowIndex) { 47 formatter: function (value, rowData, rowIndex) {
45 - return parseInt(value / 60); 48 + return value + "%";
46 } 49 }
47 }, 50 },
48 { 51 {
49 - title: "百分比",  
50 - width: "80",  
51 - field: "percent", 52 + title: "敏感接口占比",
  53 + width: "70",
  54 + field: "impApiPrecent",
52 formatter: function (value, rowData, rowIndex) { 55 formatter: function (value, rowData, rowIndex) {
53 return value + "%"; 56 return value + "%";
54 } 57 }
55 }, 58 },
56 { 59 {
  60 + title: "udid个数",
  61 + width: "70",
  62 + field: "udidCount",
  63 + },
  64 + {
  65 + title: "不存在的udid个数",
  66 + width: "70",
  67 + field: "notExsitUdidCount",
  68 + },
  69 + {
57 title: "时间", 70 title: "时间",
58 - width: "200", 71 + width: "100",
59 field: "time" 72 field: "time"
60 }, 73 },
61 { 74 {
62 title: "详情", 75 title: "详情",
63 - width: "200px", 76 + width: "50px",
64 field: "ip", 77 field: "ip",
65 formatter: function (value, rowData, rowIndex) { 78 formatter: function (value, rowData, rowIndex) {
66 var div = $("<div>"); 79 var div = $("<div>");
@@ -54,7 +54,7 @@ function refreshTable() { @@ -54,7 +54,7 @@ function refreshTable() {
54 }, 54 },
55 { 55 {
56 title: "详情", 56 title: "详情",
57 - width: "200px", 57 + width: "50px",
58 field: "ip", 58 field: "ip",
59 formatter: function (value, rowData, rowIndex) { 59 formatter: function (value, rowData, rowIndex) {
60 var div = $("<div>"); 60 var div = $("<div>");
@@ -56,7 +56,7 @@ function refreshTable() { @@ -56,7 +56,7 @@ function refreshTable() {
56 }, 56 },
57 { 57 {
58 title: "详情", 58 title: "详情",
59 - width: "200px", 59 + width: "50px",
60 field: "ip", 60 field: "ip",
61 formatter: function (value, rowData, rowIndex) { 61 formatter: function (value, rowData, rowIndex) {
62 var div = $("<div>"); 62 var div = $("<div>");
@@ -29,7 +29,7 @@ function refreshTableRemove() { @@ -29,7 +29,7 @@ function refreshTableRemove() {
29 field: "ip" 29 field: "ip"
30 }, 30 },
31 { 31 {
32 - title: "剩余时间()", 32 + title: "剩余时间(小时)",
33 width: "100px", 33 width: "100px",
34 field: "ttl" 34 field: "ttl"
35 }] 35 }]