kongdeqiang
2022-12-16 daf6a95086087ec99232eea8b4648b7541881f7c
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
package com.wgcloud.entity;
 
import com.wgcloud.util.DateUtil;
import org.apache.commons.lang3.StringUtils;
 
import java.util.Date;
 
/**
 * @version v3.3
 * @ClassName:HostDiskPer.java
 * @author: http://www.wgstart.com
 * @date: 2021年10月24日
 * @Description: 服务器磁盘总容量使用率
 * @Copyright: 2019-2021 wgcloud. All rights reserved.
 */
public class HostDiskPer extends BaseEntity {
 
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
 
    /**
     * host名称
     */
    private String hostname;
 
    /**
     * 磁盘总使用率
     */
    private Double diskSumPer;
 
 
    /**
     * 添加时间
     * yyyy-MM-dd hh:mm:ss
     */
    private String dateStr;
 
    /**
     * 创建时间
     */
    private Date createTime;
 
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public String getDateStr() {
        String s = DateUtil.getDateTimeString(this.getCreateTime());
        if (!StringUtils.isEmpty(s) && s.length() > 9) {
            return s.substring(0, 10);
        }
        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 getDiskSumPer() {
        return diskSumPer;
    }
 
    public void setDiskSumPer(Double diskSumPer) {
        this.diskSumPer = diskSumPer;
    }
}