public static class UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
healthCheckCodes
The HTTP status codes that are used to determine whether the backend server passes the health check.
|
Integer |
healthCheckConnectPort
The port that you want to use for health checks on backend servers.
|
Boolean |
healthCheckEnabled
Specifies whether to enable the health check feature.
|
String |
healthCheckHost
The domain name that is used for health checks.
|
String |
healthCheckHttpVersion
The version of HTTP that is used for health checks.
|
Integer |
healthCheckInterval
The interval at which health checks are performed.
|
String |
healthCheckMethod
The method that you want to use for the health check.
|
String |
healthCheckPath
The path that is used for health checks.
|
String |
healthCheckProtocol
The protocol that you want to use for health checks.
|
Integer |
healthCheckTimeout
Specify the timeout period of a health check response.
|
Integer |
healthyThreshold
The number of times that an unhealthy backend server must consecutively pass health checks before it can be declared healthy (from **fail** to **success**).
|
Integer |
unhealthyThreshold
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy.
|
| 构造器和说明 |
|---|
UpdateServerGroupAttributeRequestHealthCheckConfig() |
@NameInMap(value="HealthCheckCodes") public List<String> healthCheckCodes
The HTTP status codes that are used to determine whether the backend server passes the health check.
@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.
> This parameter takes effect when the **HealthCheckEnabled** parameter is set to **true**.
@NameInMap(value="HealthCheckEnabled") public Boolean healthCheckEnabled
Specifies whether to enable the health check feature. Valid values:
* **true** (default)
* **false**
@NameInMap(value="HealthCheckHost") public String healthCheckHost
The domain name that is used for health checks. The domain name must meet the following requirements:
* The domain name must be 1 to 80 characters in length.
* The domain name can contain lowercase letters, digits, hyphens (-), and periods (.).
* It must contain at least one period (.) but cannot start or end with a period (.).
* The rightmost field of the domain name can contain only letters and cannot contain digits or hyphens (-).
* Other fields cannot start or end with a hyphen (-).
> This parameter takes effect when the **HealthCheckEnabled** parameter is set to true and the **HealthCheckProtocol** parameter is set to **HTTP**.
@NameInMap(value="HealthCheckHttpVersion") public String healthCheckHttpVersion
The version of HTTP that is used for health checks. Valid values:
* **HTTP1.0**
* **HTTP1.1**
> This parameter takes effect when the **HealthCheckEnabled** parameter is set to true and the **HealthCheckProtocol** parameter is set to **HTTP**.
@NameInMap(value="HealthCheckInterval") public Integer healthCheckInterval
The interval at which health checks are performed. Unit: seconds.
Valid values: **1** to **50**.
> This parameter takes effect when the **HealthCheckEnabled** parameter is set to **true**.
@NameInMap(value="HealthCheckMethod") public String healthCheckMethod
The method that you want to use for the health check. Valid values:
* **GET**: If the length of a response exceeds 8 KB, the response is truncated. However, the health check result is not affected.
* **POST**: gRPC health checks automatically use the POST method.
* **HEAD**: HTTP health checks automatically use the HEAD method.
> This parameter takes effect when the **HealthCheckEnabled** parameter is set to true and the **HealthCheckProtocol** parameter is set to **HTTP** or **gRPC**.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The path that is used for health checks.
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 when the **HealthCheckEnabled** parameter is set to **true** and the **HealthCheckProtocol** parameter is set to **HTTP**.
@NameInMap(value="HealthCheckProtocol") public String healthCheckProtocol
The protocol that you want to use for health checks. Valid values:
* **HTTP**: To perform HTTP health checks, ALB sends HEAD or GET requests to a backend server to check whether the backend server is healthy.
* **TCP**: To perform TCP health checks, ALB sends SYN packets to a backend server to check whether the port of the backend server is available to receive requests.
* **gRPC**: To perform gRPC health checks, ALB sends POST or GET requests to a backend server to check whether the backend server is healthy.
@NameInMap(value="HealthCheckTimeout") public Integer healthCheckTimeout
Specify the timeout period of a health check response. If a backend server, such as an Elastic Compute Service (ECS) instance, does not return a health check response within the specified timeout period, the server fails the health check. Unit: seconds.
Valid values: **1** to **300**.
>
* If the value of the **HealthCheckTimeout** parameter is smaller than that of the **HealthCheckInterval** parameter, the timeout period specified by the **HealthCheckTimeout** parameter is ignored and the value of the **HealthCheckInterval** parameter is used as the timeout period.
* This parameter takes effect when the **HealthCheckEnabled** parameter is set to **true**.
@NameInMap(value="HealthyThreshold") public Integer healthyThreshold
The number of times that an unhealthy backend server must consecutively pass health checks before it can be declared healthy (from **fail** to **success**).
Valid values: **2** to **10**.
@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 is changed from **success** to **fail**.
Valid values: **2** to **10**.
public UpdateServerGroupAttributeRequestHealthCheckConfig()
public static UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckCodes(List<String> healthCheckCodes)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckHost(String healthCheckHost)
public String getHealthCheckHost()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckHttpVersion(String healthCheckHttpVersion)
public String getHealthCheckHttpVersion()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckMethod(String healthCheckMethod)
public String getHealthCheckMethod()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthCheckTimeout(Integer healthCheckTimeout)
public Integer getHealthCheckTimeout()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2024. All rights reserved.