ServiceInfo.java
1.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
package vion.model.monitor;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import vion.dto.BaseDTO;
import java.time.LocalDateTime;
/**
* 服务信息
*/
@Getter
@Setter
@TableName(value = "m_service")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ServiceInfo extends BaseDTO {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 唯一标识
*/
@TableField(value = "uid")
private String uid;
/**
* 名称
*/
@TableField(value = "name", condition = SqlCondition.LIKE)
private String name;
/**
* 请求路径:http(s)://ip(:port)/path
*/
@TableField(value = "url")
private String url;
/**
* 请求方法
*/
@TableField(value = "\"method\"")
private String method;
/**
* 监控类型:HTTP(s)
*/
@TableField(value = "\"type\"")
private String type;
/**
* 用户名
*/
@TableField(value = "username")
private String username;
/**
* 密码
*/
@TableField(value = "\"password\"")
private String password;
/**
* 描述
*/
@TableField(value = "description")
private String description;
@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 ServiceRecord serviceRecord;
@TableField(exist = false)
private String agentUid;
}