blob: 176c656b6101ebdc6642375eccb00b41634d3be7 (
plain)
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
|
package com.nis.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
@TableName("alert_message_history")
public class AlertMessageHistoryEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.INPUT)
private Integer id;
/**
* 告警规则id
*/
private Integer ruleId;
/**
* 告警级别
*/
private Integer severityId;
/**
* 告警摘要
*/
private String summary;
/**
* 告警描述
*/
private String description;
/**
* 告警labels信息
*/
private String labels;
/**
* 开始时间
*/
private Date startAt;
/**
* 结束时间
*/
private Date endAt;
/**
* 状态
*/
private Integer state;
/**
* 关联project id
*/
private Integer projectId;
/**
* 关联module Id
*/
private Integer moduleId;
/**
* 关联endpoint_id
*/
private Integer endpointId;
/**
* 关联asset id
*/
private Integer assetId;
/**
* 关联dc
*/
private Integer dcId;
/**
* redis hash key
* */
private String hashKey;
/**
* remark 修改时使用此参数 记录手动关闭的备注信息
*/
private String remark;
/**
* linkId对应实体类
* */
@TableField(exist = false)
private Object linkObject;
@TableField(exist = false)
private AlertRuleEntity alertRule;
/**
* 对应的project
*/
@TableField(exist = false)
private Project project;
/**
* module
*/
@TableField(exist = false)
private Module module;
/**
* endpoint
*/
@TableField(exist = false)
private Endpoint endpoint;
/**
* dc
*/
@TableField(exist = false)
private Dc dc;
@TableField(exist = false)
private String severity;
}
|