-
Notifications
You must be signed in to change notification settings - Fork 77
/
db_monitor.go
51 lines (45 loc) · 1.54 KB
/
db_monitor.go
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
package models
type DbMonitorTable struct {
Id int `json:"id"`
EndpointGuid string `json:"endpoint_guid"`
Name string `json:"name"`
Sql string `json:"sql"`
SysPanel string `json:"sys_panel"`
}
type DbMonitorUpdateDto struct {
Id int `json:"id"`
EndpointId int `json:"endpoint_id" binding:"required"`
Name string `json:"name" binding:"required"`
Sql string `json:"sql" binding:"required"`
SysPanel string `json:"sys_panel"`
}
type DbMonitorTaskObj struct {
DbType string `json:"db_type"`
Endpoint string `json:"endpoint"`
Name string `json:"name"`
Server string `json:"server"`
Port string `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Sql string `json:"sql"`
Step int64 `json:"step"`
ServiceGroup string `json:"service_group"`
}
type DbMonitorConfigQuery struct {
EndpointGuid string `json:"endpoint_guid"`
Name string `json:"name"`
Sql string `json:"sql"`
User string `json:"user"`
Password string `json:"password"`
InstanceAddress string `json:"instance_address"`
}
type DbMonitorListObj struct {
SysPanel string `json:"sys_panel"`
SysPanelValue string `json:"sys_panel_value"`
Data []*DbMonitorTable `json:"data"`
}
type DbMonitorSysNameDto struct {
OldName string `json:"old_name"`
NewName string `json:"new_name" binding:"required"`
EndpointId int `json:"endpoint_id" binding:"required"`
}