UpdateMonitor.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 UpdateMonitor struct {
20
21 /* 连续几次触发报警 */
22 AlarmLimit int `json:"alarmLimit"`
23
24 /* 监控项ID */
25 Id int `json:"id"`
26
27 /* 备用地址1 */
28 IpBackup01 string `json:"ipBackup01"`
29
30 /* 备用地址2 */
31 IpBackup02 string `json:"ipBackup02"`
32
33 /* 备用地址列表,存在该参数时,可不填写参数备用地址1、备用地址2 (Optional) */
34 BackupAddressList []string `json:"backupAddressList"`
35
36 /* 监控状况 开启监控:2,暂停监控:4 */
37 MonitorEnable int `json:"monitorEnable"`
38
39 /* 监控频率,单位秒 */
40 MonitorFreq int `json:"monitorFreq"`
41
42 /* 监控端口 */
43 MonitorPort int `json:"monitorPort"`
44
45 /* 不做任何修改0,强制暂停解析记录1,自动切换到备用地址2 */
46 MonitorRule int `json:"monitorRule"`
47
48 /* 监控路径 */
49 MonitorUri string `json:"monitorUri"`
50
51 /* 不发送邮件:0, 发送邮件:1 */
52 NotifyEmailEnable int `json:"notifyEmailEnable"`
53
54 /* 不发送通知栏:0, 发送通知栏:1 */
55 NotifyMsgBarEnable int `json:"notifyMsgBarEnable"`
56
57 /* 不发送短信:0, 发送短信:1 (Optional) */
58 NotifySmsEnable *int `json:"notifySmsEnable"`
59
60 /* https 0,https 1 */
61 Protocol int `json:"protocol"`
62
63 /* 0自动恢复 1手动恢复 */
64 StopRecoverRule int `json:"stopRecoverRule"`
65
66 /* 0自动恢复至主host 1手动恢复至主host */
67 SwitchRecoverRule int `json:"switchRecoverRule"`
68
69 /* 探测请求携带自定义头域及其域值列表 (Optional) */
70 RequestHeaders []HttpHeader `json:"requestHeaders"`
71
72 /* 探测响应Body体中包含的字符串 (Optional) */
73 ResponseBodyMatch *string `json:"responseBodyMatch"`
74
75 /* 探测响应码范围列表 (Optional) */
76 ResponseCodeRanges []HttpResponseCodeRange `json:"responseCodeRanges"`
77 }
78