Monitor.go raw
1 // Copyright 2018 JDCLOUD.COM
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // NOTE: This class is auto generated by the jdcloud code generator program.
16
17 package models
18
19 type Monitor struct {
20
21 /* 连续几次触发报警 (Optional) */
22 AlarmLimit int `json:"alarmLimit"`
23
24 /* 现在是否可以恢复 (Optional) */
25 CanRecover bool `json:"canRecover"`
26
27 /* 现在是否可以切换 (Optional) */
28 CanSwitch bool `json:"canSwitch"`
29
30 /* 机房探测点的集合 (Optional) */
31 Clusters string `json:"clusters"`
32
33 /* 主域名 (Optional) */
34 DomainName string `json:"domainName"`
35
36 /* 主机状态,0正常,1异常 (Optional) */
37 HostStatus int `json:"hostStatus"`
38
39 /* 监控对象 (Optional) */
40 HostValue string `json:"hostValue"`
41
42 /* 监控项ID (Optional) */
43 Id int `json:"id"`
44
45 /* 备用地址1 (Optional) */
46 IpBackup01 string `json:"ipBackup01"`
47
48 /* 备用地址1的状态,0正常,1异常 (Optional) */
49 IpBackup01Status int `json:"ipBackup01Status"`
50
51 /* 备用地址1的类型,1为ip 2为域名 (Optional) */
52 IpBackup01Type int `json:"ipBackup01Type"`
53
54 /* 备用地址2 (Optional) */
55 IpBackup02 string `json:"ipBackup02"`
56
57 /* 备用地址2的状态,0正常,1异常 (Optional) */
58 IpBackup02Status int `json:"ipBackup02Status"`
59
60 /* 备用地址1的类型,1为ip 2为域名 (Optional) */
61 IpBackup02Type int `json:"ipBackup02Type"`
62
63 /* 手动切换的地址 (Optional) */
64 ManualBackup string `json:"manualBackup"`
65
66 /* 手动切换的地址的状态,0正常,1异常 (Optional) */
67 ManualBackupStatus int `json:"manualBackupStatus"`
68
69 /* 手动切换的地址的类型,1为ip 2为域名 (Optional) */
70 ManualBackupType int `json:"manualBackupType"`
71
72 /* 监控状况 开启监控 2,暂停监控 4 (Optional) */
73 MonitorEnable int `json:"monitorEnable"`
74
75 /* 监控频率,单位秒 (Optional) */
76 MonitorFreq int `json:"monitorFreq"`
77
78 /* 监控端口 (Optional) */
79 MonitorPort int `json:"monitorPort"`
80
81 /* 不做任何修改0,强制暂停解析记录1,自动切换到备用地址2 (Optional) */
82 MonitorRule int `json:"monitorRule"`
83
84 /* 监控路径 (Optional) */
85 MonitorUri string `json:"monitorUri"`
86
87 /* 邮箱地址 (Optional) */
88 NotifyEmail string `json:"notifyEmail"`
89
90 /* 不发送邮件0, 发送邮件1 (Optional) */
91 NotifyEmailEnable int `json:"notifyEmailEnable"`
92
93 /* 不发送通知栏 0, 发送通知栏 1 (Optional) */
94 NotifyMsgBarEnable int `json:"notifyMsgBarEnable"`
95
96 /* 手机号码 (Optional) */
97 NotifySms string `json:"notifySms"`
98
99 /* 不发送短信 0, 发送短信 1 (Optional) */
100 NotifySmsEnable int `json:"notifySmsEnable"`
101
102 /* http协议:0,https协议:1 (Optional) */
103 Protocol int `json:"protocol"`
104
105 /* 自动恢复:0 手动恢复:1 (Optional) */
106 StopRecoverRule int `json:"stopRecoverRule"`
107
108 /* 子域名 (Optional) */
109 SubDomainName string `json:"subDomainName"`
110
111 /* 自动恢复至主host:0 手动恢复至主host:1 (Optional) */
112 SwitchRecoverRule int `json:"switchRecoverRule"`
113
114 /* 1为A记录,2为CNAME (Optional) */
115 Type int `json:"type"`
116
117 /* 使用记录,host_value 0,ip_backup_01 1,ip_backup_02 2,cname_backup 3 (Optional) */
118 UsedType int `json:"usedType"`
119
120 /* 备用地址及其状态列表 (Optional) */
121 BackupAddressList []BackupAddressesInfo `json:"backupAddressList"`
122
123 /* 探测请求携带自定义头域及其域值列表 (Optional) */
124 RequestHeaders []HttpHeader `json:"requestHeaders"`
125
126 /* 探测响应Body体中包含的字符串 (Optional) */
127 ResponseBodyMatch string `json:"responseBodyMatch"`
128
129 /* 探测响应码范围列表 (Optional) */
130 ResponseCodeRanges []HttpResponseCodeRange `json:"responseCodeRanges"`
131
132 /* 正在使用的有效解析地址 (Optional) */
133 EffectAddr string `json:"effectAddr"`
134 }
135