summaryrefslogtreecommitdiff
path: root/src/main/java/com/nis/entity/MonitorProject.java
blob: 23d20db3a82eac662223330c93e36a8acaf0e94b (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
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.ArrayList;
import java.util.List;

@Data
@TableName("monitor_project")
public class MonitorProject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.INPUT)
    private Integer id;

    /**
     * 应用名称
     */
    private String name;

    /**
     * 描述
     */
    private String remark;

    /**
     * 是否内置 1:内置,0:非内置,默认:0 内置数据不允许删除
     */
    private Integer buildIn;

    private String seq;

    @TableField(exist = false)
    private List<Integer> alertStat = new ArrayList<Integer>();

    /**
     * module 列表
     */
    @TableField(exist = false)
    private List<MonitorModule> children;

    /**
     * module数量
     */
    @TableField(exist = false)
    private Integer moduleNum;

    /**
     * endpoint数量
     */
    @TableField(exist = false)
    private Integer endpointNum;

    /**
     * asset数量
     */
    @TableField(exist = false)
    private Integer assetNum;

    /**
     * alert数量
     */
    @TableField(exist = false)
    private Integer alertNum;

}