-
Notifications
You must be signed in to change notification settings - Fork 44
/
model_update_healthmonitor_req.go
53 lines (37 loc) · 2.38 KB
/
model_update_healthmonitor_req.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
52
53
package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// UpdateHealthmonitorReq 更新健康检查请求
type UpdateHealthmonitorReq struct {
// 健康检查名称。
Name *string `json:"name,omitempty"`
// 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 健康检查端口号。默认为空,表示使用后端云服务器组的端口。
MonitorPort *int32 `json:"monitor_port,omitempty"`
// 健康检查的超时时间。建议该值小于delay的值。
Timeout *int32 `json:"timeout,omitempty"`
// 期望HTTP响应状态码,指定下列值:单值,例如200;列表,例如200,202;区间,例如200-204。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
ExpectedCodes *string `json:"expected_codes,omitempty"`
// 功能说明:健康检查测试member健康状态时,发送的http请求的域名。仅当type为HTTP时生效。使用说明:默认为空,表示使用负载均衡器的vip作为http请求的目的地址。以数字或字母开头,只能包含数字、字母、’-’、’.’。
DomainName *string `json:"domain_name,omitempty"`
// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。
UrlPath *string `json:"url_path,omitempty"`
// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
HttpMethod *string `json:"http_method,omitempty"`
// 健康检查间隔
Delay *int32 `json:"delay,omitempty"`
// 最大重试次数
MaxRetries *int32 `json:"max_retries,omitempty"`
// 健康检查的类型。 取值范围:TCP、UDP_CONNECT、HTTP。
Type *string `json:"type,omitempty"`
}
func (o UpdateHealthmonitorReq) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "UpdateHealthmonitorReq struct{}"
}
return strings.Join([]string{"UpdateHealthmonitorReq", string(data)}, " ")
}