1.增加了 地域流量,配置日志,丢弃量接口
2.增加了一个时间处理的工具类
This commit is contained in:
69
src/main/java/com/nis/domain/restful/DropInfo.java
Normal file
69
src/main/java/com/nis/domain/restful/DropInfo.java
Normal file
@@ -0,0 +1,69 @@
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModel;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @description 丢弃量统计API
|
||||
* @author dell
|
||||
* @date 2018年12月5日11:22:21
|
||||
*/
|
||||
|
||||
@ApiModel(value = "丢弃量对象", description = "用来封装丢弃量")
|
||||
public class DropInfo implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6058402409885962868L;
|
||||
|
||||
@JsonInclude(value = Include.NON_NULL)
|
||||
@ApiModelProperty(value = "动作")
|
||||
private String label;// 动作
|
||||
|
||||
@JsonInclude(value = Include.NON_NULL)
|
||||
@ApiModelProperty(value = "接收字节数")
|
||||
private long sum;// 接收字节数
|
||||
|
||||
@JsonInclude()
|
||||
@ApiModelProperty(value = "统计时间")
|
||||
private Date reportTime;// 五分钟统计时间
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public long getSum() {
|
||||
return sum;
|
||||
}
|
||||
|
||||
public void setSum(long sum) {
|
||||
this.sum = sum;
|
||||
}
|
||||
|
||||
@JsonSerialize(using = JsonDateSerializer.class)
|
||||
public Date getReportTime() {
|
||||
return reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Date reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DropInfo [label=" + label + ", sum=" + sum + ", reportTime=" + reportTime + "]";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user