public static class UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig
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.
|
| 构造器和说明 |
|---|
UpdateServerGroupAttributeRequestHealthCheckConfig() |
@NameInMap(value="HealthCheckConnectPort") public Integer healthCheckConnectPort
The port that you want to use for health checks on backend servers. Valid values: **0** to **65535**. If you set the value to **0**, the ports of backend servers are 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**.
@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**
* **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**.
@NameInMap(value="HealthCheckType") public String healthCheckType
The protocol that you want to use for health checks. Valid values: **TCP** 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 only letters, digits, and the following special characters: `- / . % ? # & =`. It can also contain the following extended characters: `_ ; ~ ! ( ) * [ ] @ $ ^ : \" , +`. The path 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**.
@NameInMap(value="HttpCheckMethod") public String httpCheckMethod
The HTTP method that is used for health checks. Valid values: **GET** 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**.
public UpdateServerGroupAttributeRequestHealthCheckConfig()
public static UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckConnectTimeout(Integer healthCheckConnectTimeout)
public Integer getHealthCheckConnectTimeout()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckDomain(String healthCheckDomain)
public String getHealthCheckDomain()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckHttpCode(List<String> healthCheckHttpCode)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckType(String healthCheckType)
public String getHealthCheckType()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckUrl(String healthCheckUrl)
public String getHealthCheckUrl()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHttpCheckMethod(String httpCheckMethod)
public String getHttpCheckMethod()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2023. All rights reserved.