kongdeqiang
2023-02-17 ac94b1d939373a684344764e5b00dac44feabd81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
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;
    }
}