Event.java
2.26 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
package vion.model.monitor;
import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Getter;
import lombok.Setter;
import vion.dto.BaseDTO;
import vion.dto.monitor.EventDTO;
import vion.vo.monitor.EventVO;
import java.time.LocalDateTime;
import java.util.List;
/**
* 监测事件
*/
@Getter
@Setter
@TableName(value = "m_event")
@AutoMappers({
@AutoMapper(target = EventVO.class),
@AutoMapper(target = EventDTO.class),
})
public class Event extends BaseDTO {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 类型 0:store+mall 1:store,2:mall
*/
@TableField(value = "type")
private Short type;
/**
* 唯一标识
*/
@TableField(value = "uid")
private String uid;
/**
* 事件名称
*/
@TableField(value = "\"name\"", condition = SqlCondition.LIKE)
private String name;
/**
* 事件类型
*/
@TableField(value = "event_type")
private String eventType;
/**
* 来源 1:系统 2:设备 3:平台
*/
@TableField(value = "\"source\"")
private Short source;
/**
* 监测时间
*/
@TableField(value = "cron")
private String cron;
/**
* 默认阈值,可为空
*/
@TableField(value = "threshold")
private String threshold;
/**
* 对比周期
*/
@TableField(value = "contrast_period")
private String contrastPeriod;
/**
* 规则
*/
@TableField(value = "\"rule\"")
private Object rule;
/**
* 描述
*/
@TableField(value = "description")
private String description;
/**
* 备注
*/
@TableField(value = "remark")
private String remark;
/**
* 创建人
*/
@TableField(value = "create_by")
private String createBy;
/**
* 修改人
*/
@TableField(value = "update_by")
private String updateBy;
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@TableField(exist = false)
private List<Long> typeList;
}