package com.wgcloud.dto; import com.wgcloud.entity.BaseEntity; import org.apache.commons.lang3.StringUtils; import java.util.Date; /** * @version v3.3 * @ClassName:NetIoState.java * @author: http://www.wgstart.com * @date: 2021年1月16日 * @Description: 主机设备的网络流量吞吐率 * @Copyright: 2019-2021 wgcloud. All rights reserved. */ public class NetIoStateDto extends BaseEntity { /** * */ private static final long serialVersionUID = -8314012397341825158L; /** * host名称 */ private String hostname; /** * 每秒钟接收的数据包,rxpck/s */ private Double rxpck; /** * 每秒钟发送的数据包,txpck/s */ private Double txpck; /** * 每秒钟接收的KB数,rxkB/s */ private Double rxbyt; /** * 每秒钟发送的KB数,txkB/s */ private Double txbyt; /** * 每秒丢弃的传入数据包数 */ private Double dropin; /** * 每秒丢弃的传出数据包数 */ private Double dropout; /** *主机连接数量包括tcp、udp、inet */ private Integer netConnections; /** * 添加时间 * yyyy-MM-dd hh:mm:ss */ private String dateStr; /** * 创建时间 */ private Date createTime; public Double getRxpck() { return rxpck; } public void setRxpck(Double rxpck) { this.rxpck = rxpck; } public Double getTxpck() { return txpck; } public void setTxpck(Double txpck) { this.txpck = txpck; } public Double getRxbyt() { return rxbyt; } public void setRxbyt(Double rxbyt) { this.rxbyt = rxbyt; } public Double getTxbyt() { return txbyt; } public void setTxbyt(Double txbyt) { this.txbyt = txbyt; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getDateStr() { if (!StringUtils.isEmpty(dateStr) && dateStr.length() > 16) { return dateStr.substring(5); } return dateStr; } public void setDateStr(String dateStr) { this.dateStr = dateStr; } public String getHostname() { return hostname; } public void setHostname(String hostname) { this.hostname = hostname; } public Double getDropin() { return dropin; } public void setDropin(Double dropin) { this.dropin = dropin; } public Double getDropout() { return dropout; } public void setDropout(Double dropout) { this.dropout = dropout; } public Integer getNetConnections() { return netConnections; } public void setNetConnections(Integer netConnections) { this.netConnections = netConnections; } }