liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.monitor.entity;
 
import org.hibernate.validator.constraints.Length;
 
import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
 
/**
 * 系统监控Entity
 * @author liugf
 * @version 2016-02-07
 */
public class Monitor extends DataEntity<Monitor> {
    
    private static final long serialVersionUID = 1L;
    private String cpu;        // cpu使用率
    private String jvm;        // jvm使用率
    private String ram;        // 内存使用率
    private String toEmail;        // 警告通知邮箱
    
    public Monitor() {
        super();
    }
 
    public Monitor(String id){
        super(id);
    }
 
    @Length(min=0, max=64, message="cpu使用率长度必须介于 0 和 64 之间")
    @ExcelField(title="cpu使用率", align=2, sort=1)
    public String getCpu() {
        return cpu;
    }
 
    public void setCpu(String cpu) {
        this.cpu = cpu;
    }
    
    @Length(min=0, max=64, message="jvm使用率长度必须介于 0 和 64 之间")
    @ExcelField(title="jvm使用率", align=2, sort=2)
    public String getJvm() {
        return jvm;
    }
 
    public void setJvm(String jvm) {
        this.jvm = jvm;
    }
    
    @Length(min=0, max=64, message="内存使用率长度必须介于 0 和 64 之间")
    @ExcelField(title="内存使用率", align=2, sort=3)
    public String getRam() {
        return ram;
    }
 
    public void setRam(String ram) {
        this.ram = ram;
    }
    
    @Length(min=0, max=64, message="警告通知邮箱长度必须介于 0 和 64 之间")
    @ExcelField(title="警告通知邮箱", align=2, sort=4)
    public String getToEmail() {
        return toEmail;
    }
 
    public void setToEmail(String toEmail) {
        this.toEmail = toEmail;
    }
    
}