diff --git a/src/main/java/com/nis/domain/configuration/BaseCfg.java b/src/main/java/com/nis/domain/configuration/BaseCfg.java
index adcbf37bc..14814c0c8 100644
--- a/src/main/java/com/nis/domain/configuration/BaseCfg.java
+++ b/src/main/java/com/nis/domain/configuration/BaseCfg.java
@@ -199,7 +199,7 @@ public class BaseCfg extends BaseEntity implements Cloneable{
/**
* 来函
*/
- @ExcelField(title="letter",sort=58)
+ @ExcelField(title="letter",sort=60)
protected String requestName;
/**
* 是否区域gk
@@ -209,7 +209,7 @@ public class BaseCfg extends BaseEntity implements Cloneable{
/**
* 分类
*/
- @ExcelField(title="classification",dictType="type",sort=60)
+ @ExcelField(title="classification",dictType="type",sort=62)
protected String classify;
/**
* 性质
diff --git a/src/main/java/com/nis/domain/configuration/BaseIpCfg.java b/src/main/java/com/nis/domain/configuration/BaseIpCfg.java
index 1f9c56baf..1d543f06b 100644
--- a/src/main/java/com/nis/domain/configuration/BaseIpCfg.java
+++ b/src/main/java/com/nis/domain/configuration/BaseIpCfg.java
@@ -43,24 +43,24 @@ public class BaseIpCfg extends BaseCfg {
*/
@Expose
@SerializedName("ipType")
- @ExcelField(title="ip_type",dictType="IP_TYPE",sort=44)
+ @ExcelField(title="ip_type",dictType="IP_TYPE",sort=50)
protected Integer ipType;
- @ExcelField(title="ip_pattern",dictType="IP_PATTERN",sort=45)
+ @ExcelField(title="ip_pattern",dictType="IP_PATTERN",sort=51)
protected Integer ipPattern;
- @ExcelField(title="client_ip",sort=47)
+ @ExcelField(title="client_ip",sort=53)
protected String srcIpAddress;
- @ExcelField(title="server_ip",sort=46)
+ @ExcelField(title="server_ip",sort=52)
protected String destIpAddress;
- @ExcelField(title="port_pattern",dictType="PORT_PATTERN",sort=48)
+ @ExcelField(title="port_pattern",dictType="PORT_PATTERN",sort=54)
protected Integer portPattern;
- @ExcelField(title="client_port",sort=49)
+ @ExcelField(title="client_port",sort=55)
protected String srcPort;
- @ExcelField(title="server_port",sort=50)
+ @ExcelField(title="server_port",sort=56)
protected String destPort;
protected Integer dnsStrategyId;
- @ExcelField(title="ir_type",dictType="IR_TYPE",sort=51)
+ @ExcelField(title="ir_type",dictType="IR_TYPE",sort=57)
protected Integer irType;
- @ExcelField(title="group_name",sort=52)
+ @ExcelField(title="group_name",sort=58)
protected String groupName;
private List ntcSubscribeIdCfgList;
@@ -75,7 +75,7 @@ public class BaseIpCfg extends BaseCfg {
protected String organization; //仅用于copy属性使用
protected String country; //仅用于copy属性使用
protected String detail; //仅用于copy属性使用
- @ExcelField(title="log_total",sort=31)
+ @ExcelField(title="log_total",sort=42)
private Long totalLogs;
public String getOrganization() {
@@ -177,14 +177,14 @@ public class BaseIpCfg extends BaseCfg {
*/
@Expose
@SerializedName("direction")
- @ExcelField(title="direction",dictType="DIRECTION",sort=53)
+ @ExcelField(title="direction",dictType="DIRECTION",sort=58)
protected Integer direction ;
/**
* 协议
*/
@Expose
@SerializedName("protocol")
- @ExcelField(title="protocol",dictType="PROTOCOL",sort=54)
+ @ExcelField(title="protocol",dictType="PROTOCOL",sort=59)
protected Integer protocol ;
/**
* 协议ID
diff --git a/src/main/java/com/nis/domain/configuration/DdosIpCfg.java b/src/main/java/com/nis/domain/configuration/DdosIpCfg.java
index c06a292e5..d57e8d577 100644
--- a/src/main/java/com/nis/domain/configuration/DdosIpCfg.java
+++ b/src/main/java/com/nis/domain/configuration/DdosIpCfg.java
@@ -23,29 +23,13 @@ public class DdosIpCfg extends BaseIpCfg {
*/
private static final long serialVersionUID = -5446903784736960824L;
private String indexTable="ddos_ip_cfg";
- @ExcelField(title="antiddos_protocol",sort=41)
+ @ExcelField(title="antiddos_protocol",sort=46)
private String antiddosProtocol;//目前支持TCP_SYN, DNS, NTP,
- @ExcelField(title="bps_threadshold",sort=42)
+ @ExcelField(title="bps_threadshold",sort=47)
private Long bpsThreadshold;// 即DDoS攻击保护动作触发阈值,每秒Bit数和每秒包数
- @ExcelField(title="pps_threadshold",sort=43)
+ @ExcelField(title="pps_threadshold",sort=48)
private Long ppsThreadshold;
- @ExcelField(title="log_total",sort=32)
- private Long totalLogs;
- @ExcelField(title="is_audit",dictType="AUDIT_STATUS",sort=20)
- private Integer isAudit;
-
- public Integer getIsAudit() {
- return isAudit;
- }
- public void setIsAudit(Integer isAudit) {
- this.isAudit = isAudit;
- }
- public Long getTotalLogs() {
- return totalLogs;
- }
- public void setTotalLogs(Long totalLogs) {
- this.totalLogs = totalLogs;
- }
+
public String getAntiddosProtocol() {
return antiddosProtocol;
}
diff --git a/src/main/java/com/nis/domain/dashboard/TrafficIpActiveStatistic.java b/src/main/java/com/nis/domain/dashboard/TrafficIpActiveStatistic.java
index 70e5e593d..6e31c4bb4 100644
--- a/src/main/java/com/nis/domain/dashboard/TrafficIpActiveStatistic.java
+++ b/src/main/java/com/nis/domain/dashboard/TrafficIpActiveStatistic.java
@@ -24,6 +24,8 @@ public class TrafficIpActiveStatistic{
String statTime;
private String _byte;
private String _packet;
+ private String avgByte;
+ private String avgPacket;
@ExcelField(title="Byte",sort=51,type=1)
public String get_byte() {
return BigInteger.valueOf(this.getC2sByteLen()).add(BigInteger.valueOf(this.getS2cByteLen())).toString();
@@ -95,5 +97,16 @@ public class TrafficIpActiveStatistic{
public void setS2cByteLen(Long s2cByteLen) {
this.s2cByteLen = s2cByteLen;
}
-
+ public String getAvgByte() {
+ return avgByte;
+ }
+ public void setAvgByte(String avgByte) {
+ this.avgByte = avgByte;
+ }
+ public String getAvgPacket() {
+ return avgPacket;
+ }
+ public void setAvgPacket(String avgPacket) {
+ this.avgPacket = avgPacket;
+ }
}
\ No newline at end of file
diff --git a/src/main/java/com/nis/util/DateUtils.java b/src/main/java/com/nis/util/DateUtils.java
index 2869881e6..af8731e7f 100644
--- a/src/main/java/com/nis/util/DateUtils.java
+++ b/src/main/java/com/nis/util/DateUtils.java
@@ -188,6 +188,20 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
long afterTime = after.getTime();
return (afterTime - beforeTime) / (1000 * 60 * 60 * 24);
}
+
+ /**
+ * 获取两个日期之间的秒数
+ *
+ * @param before
+ * @param after
+ * @return
+ */
+ public static double getSecondsOfTwoDate(Date before, Date after) {
+ long beforeTime = before.getTime();
+ long afterTime = after.getTime();
+ return (afterTime - beforeTime) / (1000);
+ }
+
/**
*
*
diff --git a/src/main/java/com/nis/web/controller/dashboard/DashboardController.java b/src/main/java/com/nis/web/controller/dashboard/DashboardController.java
index 62eab0f26..3a3e1226d 100644
--- a/src/main/java/com/nis/web/controller/dashboard/DashboardController.java
+++ b/src/main/java/com/nis/web/controller/dashboard/DashboardController.java
@@ -3,6 +3,7 @@ package com.nis.web.controller.dashboard;
import java.lang.reflect.Type;
import java.net.URISyntaxException;
import java.net.URLEncoder;
+import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
@@ -248,7 +249,7 @@ public class DashboardController extends BaseController{
@ResponseBody
public List ajaxIpActiveList(String beginDate,String endDate,Integer entranceId){
Map fromJsonList = new HashMap();
- List list = new ArrayList();
+ List list = new ArrayList();
try {
String url=Constants.DASHBOARD_URL+Constants.TRAFFIC_IPACTIVE_ONEHOUR;
url=urlAddDate(url, beginDate, endDate);
@@ -260,6 +261,16 @@ public class DashboardController extends BaseController{
fromJsonList = gson.fromJson(string, new TypeToken
- c2s 0 | s2c 0
+ in 0 | out 0
0 bps
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficAppTrendList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficAppTrendList.jsp
index 1618849f2..b6f81469e 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficAppTrendList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficAppTrendList.jsp
@@ -162,6 +162,8 @@
() |
|
() |
+ |
+ |
@@ -317,6 +319,8 @@
html += "" + data.pktPercent + " % | ";
html += "" + Math.round(data.byteNum*100)/100 + " | ";
html += "" + data.bytePercent + " % | ";
+ html += "" + data.pps + " | ";
+ html += "" + data.bps + " | ";
html += ""
if(index==fileDataS.length-1){
html+=""
@@ -327,7 +331,9 @@
html+= "| "+"--"+" | ";
html+= ""+totalbyte+" | ";
html+= ""+"--"+" | ";
- html+="
"
+ html+= ""+"--"+" | ";
+ html+= ""+"--"+" | ";
+ html+=""
}
}
$("#tableData").append(html);
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp
index dd4b361ec..390483cc6 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficAppTypeList.jsp
@@ -120,6 +120,8 @@
() |
|
() |
+ |
+ |
@@ -353,6 +355,8 @@ function htmlData(fileDataS){
html+= ""+packper+"%"+" | ";
html+= ""+Math.round(data.GByte*100)/100+" | ";
html+= ""+gbytper+"%"+" | ";
+ html+= ""+data.pps+" | ";
+ html+= ""+data.bps+" | ";
html+=""
if(index==fileDataS.length-1){
html+=""
@@ -364,6 +368,8 @@ function htmlData(fileDataS){
html+= "| "+"100%"+" | ";
html+= ""+Math.round(totalGByte*100)/100+" | ";
html+= ""+"100%"+" | ";
+ html+= ""+"--"+" | ";
+ html+= ""+"--"+" | ";
html+="
"
}
}
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp
index c2a569e15..cc8d9505f 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficHttpStatisticList.jsp
@@ -82,6 +82,8 @@
() |
|
() |
+ |
+ |
@@ -298,6 +300,8 @@ function htmlData(fileDataS){
html+= ""+(data.packets/data.allPackets*100).toFixed(2)+"%"+" | ";
html+= ""+(data.count/1073741824).toFixed(2)+" | ";
html+= ""+(data.count/data.allGByte*100).toFixed(2)+"%"+" | ";
+ html+= ""+data.pps+" | ";
+ html+= ""+data.bps+" | ";
html+=""
if(index==fileDataS.length-1){
html+=""
@@ -308,6 +312,8 @@ function htmlData(fileDataS){
html+= "| "+"100%"+" | ";
html+= ""+(data.allGByte/1073741824).toFixed(2)+" | ";
html+= ""+"100%"+" | ";
+ html+= ""+"--"+" | ";
+ html+= ""+"--"+" | ";
html+="
"
}
}
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficIpActiveList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficIpActiveList.jsp
index fa791acf9..8e70efb56 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficIpActiveList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficIpActiveList.jsp
@@ -100,6 +100,8 @@
|
|
|
+ |
+ |
@@ -422,6 +424,8 @@ function showIpActiveChart(xData,series){
html+= ""+rs.s2cPktNum+" | ";
html+= ""+packetNum+" | ";
html+= ""+rs.statTime+" | ";
+ html+= ""+rs.avgPacket+" | ";
+ html+= ""+rs.avgByte+" | ";
html+=""
if(i==data.length-1){
@@ -435,6 +439,8 @@ function showIpActiveChart(xData,series){
html+= ""+totalc2sPkt+" | ";
html+= ""+totals2cPkt+" | ";
html+= ""+totalpacket+" | ";
+ html+= ""+"--"+" | ";
+ html+= ""+"--"+" | ";
html+= ""+"--"+" | ";
html+=""
}
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp
index 4311e068f..184c8e438 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficProtocolTypeList.jsp
@@ -107,6 +107,8 @@
() |
|
() |
+ |
+ |
@@ -343,6 +345,8 @@ function htmlData(fileDataS){
html+= ""+packper+"%"+" | ";
html+= ""+Math.round(data.GByte*100)/100+" | ";
html+= ""+gbytper+"%"+" | ";
+ html+= ""+data.pps+" | ";
+ html+= ""+data.bps+" | ";
html+=""
if(index==fileDataS.length-1){
html+=""
@@ -353,6 +357,8 @@ function htmlData(fileDataS){
html+= "| "+"100%"+" | ";
html+= ""+Math.round(totalGByte*100)/100+" | ";
html+= ""+"100%"+" | ";
+ html+= ""+"——"+" | ";
+ html+= ""+"——"+" | ";
html+="
"
}
}
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp
index b207a3362..a2d38a1ae 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp
@@ -130,7 +130,6 @@
}
$("#pageNo").val(n);
$("#pageSize").val(s);
-// $("#searchForm").attr("action","${ctx}/traffic/userBehavior");
$("#searchForm").submit();
return false;
}
@@ -244,7 +243,7 @@
+ value="${log.searchFoundStartTime}" onclick="WdatePicker({onpicked:function(){this.onchange()},dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'#F{\'new Date()\'}'});" onchange="setEndTimeByFormat('#searchFoundStartTime','#searchFoundEndTime',1,'d','yyyy-MM-dd hh:mm:ss',false,'yyyy-MM-dd hh')"/>
@@ -253,14 +252,14 @@
+ value="${log.searchFoundEndTime}" onclick="WdatePicker({onpicked:function(){this.onchange()},dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true,maxDate:'#F{\'new Date()\'}'});" onchange="setEndTimeByFormat('#searchFoundStartTime','#searchFoundEndTime',1,'d','yyyy-MM-dd hh:mm:ss',false,'yyyy-MM-dd hh')"/>
-
+
-
+
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficWebTypeList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficWebTypeList.jsp
index ffe66034f..be277e753 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficWebTypeList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficWebTypeList.jsp
@@ -150,6 +150,8 @@
() |
|
() |
+ |
+ |
@@ -398,6 +400,8 @@
html += "" + packper + " % | ";
html += "" + Math.round(data.Gbyte*100)/100 + " | ";
html += "" + gbytper + " % | ";
+ html += "" + data.pps + " | ";
+ html += "" + data.bps + " | ";
html += ""
if(index==fileDataS.length-1){
html+=""
@@ -409,6 +413,8 @@
html+= "| "+"100%"+" | ";
html+= ""+parseInt(totalGbyte).toFixed(2)+" | ";
html+= ""+"100%"+" | ";
+ html+= ""+"--"+" | ";
+ html+= ""+"--"+" | ";
html+="
"
}
}