IotAlert.java
2.6 KB
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
package com.ruoyi.system.domain;
import com.ruoyi.system.domain.tool.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
/**
* 设备告警对象 iot_alert
*
* @author kerwincui
* @date 2022-01-13
*/
public class IotAlert extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 告警ID */
private Long alertId;
/** 告警名称 */
private String alertName;
/** 告警级别(1=提醒通知,2=轻微问题,3=严重警告) */
private Long alertLevel;
/** 产品ID */
private Long productId;
/** 产品名称 */
private String productName;
/** 触发器 */
private String triggers;
/** 执行动作 */
private String actions;
/** 告警状态 (1-启动,2-停止)**/
private Integer status;
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public void setAlertId(Long alertId)
{
this.alertId = alertId;
}
public Long getAlertId()
{
return alertId;
}
public void setAlertName(String alertName)
{
this.alertName = alertName;
}
public String getAlertName()
{
return alertName;
}
public void setAlertLevel(Long alertLevel)
{
this.alertLevel = alertLevel;
}
public Long getAlertLevel()
{
return alertLevel;
}
public void setProductId(Long productId)
{
this.productId = productId;
}
public Long getProductId()
{
return productId;
}
public void setProductName(String productName)
{
this.productName = productName;
}
public String getProductName()
{
return productName;
}
public void setTriggers(String triggers)
{
this.triggers = triggers;
}
public String getTriggers()
{
return triggers;
}
public void setActions(String actions)
{
this.actions = actions;
}
public String getActions()
{
return actions;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("alertId", getAlertId())
.append("alertName", getAlertName())
.append("alertLevel", getAlertLevel())
.append("productId", getProductId())
.append("productName", getProductName())
.append("triggers", getTriggers())
.append("actions", getActions())
.toString();
}
}