This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-k18-galaxy-service/src/main/java/com/nis/domain/restful/DropInfo.java

70 lines
1.6 KiB
Java
Raw Normal View History

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 + "]";
}
}