付延余
2022-12-16 f0f8ee8c4a945adbc742d9bab69382b28ad311fb
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
package com.wgcloud.entity;
 
import com.wgcloud.util.DateUtil;
import org.apache.commons.lang3.StringUtils;
 
import java.util.Date;
 
/**
 * @version v3.3
 * @ClassName:DbTable.java
 * @author: http://www.wgstart.com
 * @date: 2021年1月16日
 * @Description: 检查系统入侵信息
 * @Copyright: 2019-2021 wgcloud. All rights reserved.
 */
public class DbTable extends BaseEntity {
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
 
    /**
     * 数据源
     */
    private String dbInfoId;
 
 
    /**
     * 从查询结果取值的列名
     */
    private String tableName;
 
    /**
     * 统计sql语句
     */
    private String whereVal;
 
    /**
     * 表别名
     */
    private String remark;
 
    /**
     * 数据量
     */
    private Long tableCount;
 
    /**
     * 告警表达式,为true告警,false不告警
     */
    private String resultExp;
 
    /**
     * 暂没有用
     */
    private Long value;
 
    /**
     * 暂没有用
     */
    private String dateStr;
 
    /**
     * 1启用监控2停止监控
     */
    private String active;
 
    /**
     * 数据表监控状态,1正常,2失败
     */
    private String state;
 
    /**
     * 创建时间
     */
    private Date createTime;
 
    //所属用户账号,页面显示用,数据库无此字段
    private String account;
 
    //数据库图标,数据库无此字段
    private String image;
 
    public String getTableName() {
        return tableName;
    }
 
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
 
    public String getWhereVal() {
        return whereVal;
    }
 
    public void setWhereVal(String whereVal) {
        this.whereVal = whereVal;
    }
 
    public String getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    public Long getTableCount() {
        return tableCount;
    }
 
    public void setTableCount(Long tableCount) {
        this.tableCount = tableCount;
    }
 
    public String getDateStr() {
        String s = DateUtil.getDateTimeString(this.getCreateTime());
        if (!StringUtils.isEmpty(s) && s.length() > 16) {
            return s.substring(5);
        }
        return dateStr;
    }
 
    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Long getValue() {
        return tableCount;
    }
 
    public void setValue(Long value) {
        this.value = value;
    }
 
    public String getDbInfoId() {
        return dbInfoId;
    }
 
    public void setDbInfoId(String dbInfoId) {
        this.dbInfoId = dbInfoId;
    }
 
    public String getActive() {
        return active;
    }
 
    public void setActive(String active) {
        this.active = active;
    }
 
    public String getResultExp() {
        return resultExp;
    }
 
    public void setResultExp(String resultExp) {
        this.resultExp = resultExp;
    }
 
    public String getAccount() {
        return account;
    }
 
    public void setAccount(String account) {
        this.account = account;
    }
 
    public String getImage() {
        return image;
    }
 
    public void setImage(String image) {
        this.image = image;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
}