package com.wgcloud.dto;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
import java.io.Serializable;
|
|
/**
|
* @version v3.3
|
* @ClassName:HostListExcelDto.java
|
* @author: http://www.wgstart.com
|
* @date: 2021年12月26日
|
* @Description: 导出主机列表excel
|
* @Copyright: 2019-2021 wgcloud. All rights reserved.
|
*/
|
public class HostListExcelDto implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
|
//IP
|
@ExcelProperty(value = "主机IP", index = 0)
|
@ColumnWidth(18)
|
private String hostname;
|
|
/**
|
* 主机名,只用于显示,不做唯一标识及关联
|
*/
|
@ExcelProperty(value = "主机名", index = 1)
|
@ColumnWidth(18)
|
private String hostnameExt;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注", index = 2)
|
@ColumnWidth(18)
|
private String remark;
|
|
//内存使用率
|
@ExcelProperty(value = "内存使用率%", index = 3)
|
@ColumnWidth(18)
|
private Double memPer;
|
|
//cpu使用率
|
@ExcelProperty(value = "cpu使用率%", index = 4)
|
@ColumnWidth(18)
|
private Double cpuPer;
|
|
//磁盘总使用率
|
@ExcelProperty(value = "磁盘总使用率%", index = 5)
|
@ColumnWidth(18)
|
private Double diskPer;
|
|
//cpu核数
|
@ExcelProperty(value = "cpu核数", index = 6)
|
@ColumnWidth(18)
|
private String cpuCoreNum;
|
|
//内存总大小
|
@ExcelProperty(value = "内存总大小", index = 7)
|
@ColumnWidth(18)
|
private String totalMem;
|
|
|
/**
|
* 每秒钟接收的KB数,下行传输速率,KB/s
|
*/
|
@ExcelProperty(value = "下行传输速率", index = 8)
|
@ColumnWidth(18)
|
private String rxbyt;
|
|
|
/**
|
* 每秒钟发送的KB数,上行传输速率,KB/s
|
*/
|
@ExcelProperty(value = "上行传输速率", index = 9)
|
@ColumnWidth(18)
|
private String txbyt;
|
|
|
/**
|
* 5分钟之前到现在的负载
|
*/
|
@ExcelProperty(value = "5分钟系统负载", index = 10)
|
@ColumnWidth(18)
|
private Double fiveLoad;
|
|
/**
|
* 15分钟之前到现在的负载
|
*/
|
@ExcelProperty(value = "15分钟系统负载", index = 11)
|
@ColumnWidth(20)
|
private Double fifteenLoad;
|
|
/**
|
* 主机连接数量包括tcp、udp、inet
|
*/
|
@ExcelProperty(value = "连接数量", index = 12)
|
@ColumnWidth(18)
|
private String netConnections;
|
|
/**
|
* 主机分组ID
|
*/
|
@ExcelProperty(value = "主机分组", index = 13)
|
@ColumnWidth(18)
|
private String groupId;
|
|
/**
|
* 累积告警次数,页面显示用,数据库无此字段
|
*/
|
@ExcelProperty(value = "告警次数", index = 14)
|
@ColumnWidth(18)
|
private Integer warnCount;
|
|
/**
|
* 上报数据频率
|
*/
|
@ExcelProperty(value = "上报数据频率(秒)", index = 15)
|
@ColumnWidth(22)
|
private String submitSeconds;
|
|
/**
|
* 累计接收流量G
|
*/
|
@ExcelProperty(value = "累计接收流量G", index = 16)
|
@ColumnWidth(18)
|
private String bytesRecv;
|
|
/**
|
* 累计发送流量G
|
*/
|
@ExcelProperty(value = "累计发送流量G", index = 17)
|
@ColumnWidth(18)
|
private String bytesSent;
|
|
/**
|
* 系统版本信息
|
*/
|
@ExcelProperty(value = "系统描述", index = 18)
|
@ColumnWidth(18)
|
private String platForm;
|
|
/**
|
* 系统版本详细信息
|
*/
|
@ExcelProperty(value = "系统版本", index = 19)
|
@ColumnWidth(18)
|
private String platformVersion;
|
|
/**
|
* 运行时间,秒
|
*/
|
@ExcelProperty(value = "运行时间", index = 20)
|
@ColumnWidth(18)
|
private String uptimeStr;
|
|
|
/**
|
* 启动时间
|
*/
|
@ExcelProperty(value = "启动时间", index = 21)
|
@ColumnWidth(18)
|
private String bootTimeStr;
|
|
/**
|
* 运行进程数量
|
*/
|
@ExcelProperty(value = "运行进程数量", index = 22)
|
@ColumnWidth(18)
|
private String procs;
|
|
|
/**
|
* CPU型号信息
|
*/
|
@ExcelProperty(value = "CPU型号信息", index = 23)
|
@ColumnWidth(18)
|
private String cpuXh;
|
|
|
/**
|
* 主机状态,1正常,2下线
|
*/
|
@ExcelProperty(value = "主机状态", index = 24)
|
@ColumnWidth(18)
|
private String state;
|
|
/**
|
* agent版本
|
*/
|
@ExcelProperty(value = "agent版本", index = 25)
|
@ColumnWidth(18)
|
private String agentVer;
|
|
//内存总大小
|
@ExcelProperty(value = "交换区内存总大小", index = 26)
|
@ColumnWidth(18)
|
private String totalSwapMem;
|
|
//内存总大小
|
@ExcelProperty(value = "交换区内存使用率%", index = 27)
|
@ColumnWidth(18)
|
private String swapMemPer;
|
|
|
/**
|
* 创建时间
|
*/
|
@ExcelProperty(value = "更新时间", index = 28)
|
@ColumnWidth(20)
|
private String createTime;
|
|
|
public String getHostname() {
|
return hostname;
|
}
|
|
public void setHostname(String hostname) {
|
this.hostname = hostname;
|
}
|
|
public Double getMemPer() {
|
return memPer;
|
}
|
|
public void setMemPer(Double memPer) {
|
this.memPer = memPer;
|
}
|
|
public Double getCpuPer() {
|
return cpuPer;
|
}
|
|
public void setCpuPer(Double cpuPer) {
|
this.cpuPer = cpuPer;
|
}
|
|
public Double getDiskPer() {
|
return diskPer;
|
}
|
|
public void setDiskPer(Double diskPer) {
|
this.diskPer = diskPer;
|
}
|
|
public String getCpuCoreNum() {
|
return cpuCoreNum;
|
}
|
|
public void setCpuCoreNum(String cpuCoreNum) {
|
this.cpuCoreNum = cpuCoreNum;
|
}
|
|
public String getTotalMem() {
|
return totalMem;
|
}
|
|
public void setTotalMem(String totalMem) {
|
this.totalMem = totalMem;
|
}
|
|
public String getSubmitSeconds() {
|
return submitSeconds;
|
}
|
|
public void setSubmitSeconds(String submitSeconds) {
|
this.submitSeconds = submitSeconds;
|
}
|
|
public String getBytesRecv() {
|
return bytesRecv;
|
}
|
|
public void setBytesRecv(String bytesRecv) {
|
this.bytesRecv = bytesRecv;
|
}
|
|
public String getBytesSent() {
|
return bytesSent;
|
}
|
|
public void setBytesSent(String bytesSent) {
|
this.bytesSent = bytesSent;
|
}
|
|
public String getRxbyt() {
|
return rxbyt;
|
}
|
|
public void setRxbyt(String rxbyt) {
|
this.rxbyt = rxbyt;
|
}
|
|
public String getTxbyt() {
|
return txbyt;
|
}
|
|
public void setTxbyt(String txbyt) {
|
this.txbyt = txbyt;
|
}
|
|
public String getHostnameExt() {
|
return hostnameExt;
|
}
|
|
public void setHostnameExt(String hostnameExt) {
|
this.hostnameExt = hostnameExt;
|
}
|
|
public Double getFiveLoad() {
|
return fiveLoad;
|
}
|
|
public void setFiveLoad(Double fiveLoad) {
|
this.fiveLoad = fiveLoad;
|
}
|
|
public Double getFifteenLoad() {
|
return fifteenLoad;
|
}
|
|
public void setFifteenLoad(Double fifteenLoad) {
|
this.fifteenLoad = fifteenLoad;
|
}
|
|
public String getNetConnections() {
|
return netConnections;
|
}
|
|
public void setNetConnections(String netConnections) {
|
this.netConnections = netConnections;
|
}
|
|
public String getGroupId() {
|
return groupId;
|
}
|
|
public void setGroupId(String groupId) {
|
this.groupId = groupId;
|
}
|
|
public Integer getWarnCount() {
|
return warnCount;
|
}
|
|
public void setWarnCount(Integer warnCount) {
|
this.warnCount = warnCount;
|
}
|
|
public String getPlatForm() {
|
return platForm;
|
}
|
|
public void setPlatForm(String platForm) {
|
this.platForm = platForm;
|
}
|
|
public String getPlatformVersion() {
|
return platformVersion;
|
}
|
|
public void setPlatformVersion(String platformVersion) {
|
this.platformVersion = platformVersion;
|
}
|
|
public String getUptimeStr() {
|
return uptimeStr;
|
}
|
|
public void setUptimeStr(String uptimeStr) {
|
this.uptimeStr = uptimeStr;
|
}
|
|
public String getBootTimeStr() {
|
return bootTimeStr;
|
}
|
|
public void setBootTimeStr(String bootTimeStr) {
|
this.bootTimeStr = bootTimeStr;
|
}
|
|
public String getProcs() {
|
return procs;
|
}
|
|
public void setProcs(String procs) {
|
this.procs = procs;
|
}
|
|
public String getCpuXh() {
|
return cpuXh;
|
}
|
|
public void setCpuXh(String cpuXh) {
|
this.cpuXh = cpuXh;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getAgentVer() {
|
return agentVer;
|
}
|
|
public void setAgentVer(String agentVer) {
|
this.agentVer = agentVer;
|
}
|
|
public String getRemark() {
|
return remark;
|
}
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
public String getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(String createTime) {
|
this.createTime = createTime;
|
}
|
|
public String getTotalSwapMem() {
|
return totalSwapMem;
|
}
|
|
public void setTotalSwapMem(String totalSwapMem) {
|
this.totalSwapMem = totalSwapMem;
|
}
|
|
public String getSwapMemPer() {
|
return swapMemPer;
|
}
|
|
public void setSwapMemPer(String swapMemPer) {
|
this.swapMemPer = swapMemPer;
|
}
|
}
|