public static class CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Integer |
healthCheckConnectPort
The port that you want to use for health checks on backend servers.
|
Integer |
healthCheckConnectTimeout
The maximum timeout period of a health check.
|
String |
healthCheckDomain
The domain name that you want to use for health checks.
|
Boolean |
healthCheckEnabled
Specifies whether to enable the health check feature.
|
List<String> |
healthCheckHttpCode
The HTTP status codes to return for health checks.
|
Integer |
healthCheckInterval
The interval at which health checks are performed.
|
String |
healthCheckType
The protocol that you want to use for health checks.
|
String |
healthCheckUrl
The path to which health check requests are sent.
|
Integer |
healthyThreshold
The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy.
|
String |
httpCheckMethod
The HTTP method that is used for health checks.
|
Integer |
unhealthyThreshold
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy.
|
| 构造器和说明 |
|---|
CreateServerGroupRequestHealthCheckConfig() |
@NameInMap(value="HealthCheckConnectPort") public Integer healthCheckConnectPort
The port that you want to use for health checks on backend servers.
Valid values: **0** to **65535**.
Default value: **0**. If you set the value to 0, the port of the backend server is used for health checks.
@NameInMap(value="HealthCheckConnectTimeout") public Integer healthCheckConnectTimeout
The maximum timeout period of a health check. Unit: seconds. Valid values: **1** to **300**. Default value: **5**.
@NameInMap(value="HealthCheckDomain") public String healthCheckDomain
The domain name that you want to use for health checks. Valid values:
* **$SERVER_IP**: the private IP address of a backend server.
* **domain**: a specified domain name. The domain name must be 1 to 80 characters in length, and can contain lowercase letters, digits, hyphens (-), and periods (.).
> This parameter takes effect only when **HealthCheckType** is set to **HTTP**.
@NameInMap(value="HealthCheckEnabled") public Boolean healthCheckEnabled
Specifies whether to enable the health check feature. Valid values:
* **true** (default)
* **false**
@NameInMap(value="HealthCheckHttpCode") public List<String> healthCheckHttpCode
The HTTP status codes to return for health checks. Separate multiple HTTP status codes with commas (,). Valid values: **http\_2xx** (default), **http\_3xx**, **http\_4xx**, and **http\_5xx**.
> This parameter takes effect only when **HealthCheckType** is set to **HTTP**.
@NameInMap(value="HealthCheckInterval") public Integer healthCheckInterval
The interval at which health checks are performed. Unit: seconds.
Valid values: **5** to **50**.
Default value: **10**.
@NameInMap(value="HealthCheckType") public String healthCheckType
The protocol that you want to use for health checks. Valid values: **TCP** (default) and **HTTP**.
@NameInMap(value="HealthCheckUrl") public String healthCheckUrl
The path to which health check requests are sent.
The path must be 1 to 80 characters in length, and can contain letters, digits, and the following special characters: `- / . % ? # &`. It must start with a forward slash (/).
> This parameter takes effect only when **HealthCheckType** is set to **HTTP**.
@NameInMap(value="HealthyThreshold") public Integer healthyThreshold
The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status changes from **fail** to **success**.
Valid values: **2** to **10**.
Default value: **2**.
@NameInMap(value="HttpCheckMethod") public String httpCheckMethod
The HTTP method that is used for health checks. Valid values: **GET** (default) and **HEAD**.
> This parameter takes effect only when **HealthCheckType** is set to **HTTP**.
@NameInMap(value="UnhealthyThreshold") public Integer unhealthyThreshold
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status changes from **success** to **fail**.
Valid values: **2** to **10**.
Default value: **2**.
public CreateServerGroupRequestHealthCheckConfig()
public static CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckConnectTimeout(Integer healthCheckConnectTimeout)
public Integer getHealthCheckConnectTimeout()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckDomain(String healthCheckDomain)
public String getHealthCheckDomain()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckHttpCode(List<String> healthCheckHttpCode)
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckType(String healthCheckType)
public String getHealthCheckType()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckUrl(String healthCheckUrl)
public String getHealthCheckUrl()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHttpCheckMethod(String httpCheckMethod)
public String getHttpCheckMethod()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2023. All rights reserved.