public static class ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
healthCheckCodes
The HTTP status codes that indicate 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
Indicates whether the health check feature is enabled.
|
String |
healthCheckHost
The domain name that is used for health checks.
|
String |
healthCheckHttpVersion
The HTTP version that is used for health checks.
|
Integer |
healthCheckInterval
The interval between two consecutive health checks.
|
String |
healthCheckMethod
The HTTP method that is used for health checks.
|
String |
healthCheckPath
The path that is used for health checks.
|
String |
healthCheckProtocol
The protocol that you want to use for health checks.
|
Integer |
healthCheckTimeout
The timeout period for a health check response.
|
Integer |
healthyThreshold
The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy.
|
Integer |
unhealthyThreshold
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy.
|
| 构造器和说明 |
|---|
ListServerGroupsResponseBodyServerGroupsHealthCheckConfig() |
@NameInMap(value="HealthCheckCodes") public List<String> healthCheckCodes
The HTTP status codes that indicate 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**.
A value of **0** indicates that the port on a backend server is used for health checks.
@NameInMap(value="HealthCheckEnabled") public Boolean healthCheckEnabled
Indicates whether the health check feature is enabled. Valid values:
* **true**
* **false**
@NameInMap(value="HealthCheckHost") public String healthCheckHost
The domain name that is used for health checks. The domain name meets the following requirements:
* The domain name is 1 to 80 characters in length.
* The domain name contains lowercase letters, digits, hyphens (-), and periods (.).
* The domain name contains at least one period (.) but does not start or end with a period (.).
* The rightmost domain label of the domain name contains only letters, and does not contain digits or hyphens (-).
* The domain name does not start or end with a hyphen (-).
> This parameter takes effect only when **HealthCheckProtocol** is set to **HTTP** or **HTTPS**. HTTPS is unavailable by default. If you want to use HTTPS, log on to the SLB console, go to the Quota Center page, and then apply for the privilege to use HTPS on the **ALB** tab.
@NameInMap(value="HealthCheckHttpVersion") public String healthCheckHttpVersion
The HTTP version that is used for health checks.
Valid values: **HTTP1.0** and **HTTP1.1**.
> This parameter takes effect when **HealthCheckProtocol** is set to **HTTP** or **HTTPS**. HTTPS is unavailable by default. If you want to use HTTPS, log on to the SLB console, go to the Quota Center page, and then apply for the privilege to use HTPS on the **ALB** tab.
@NameInMap(value="HealthCheckInterval") public Integer healthCheckInterval
The interval between two consecutive health checks. Unit: seconds. Valid values: **1** to **50**.
@NameInMap(value="HealthCheckMethod") public String healthCheckMethod
The HTTP method that is used for health checks. 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 on listeners use the POST method by default.
* **HEAD**: HTTP and HTTPS health checks on listeners use the HEAD method by default.
> This parameter takes effect when **HealthCheckProtocol** is set to **HTTP**, **HTTPS**, or **gRPC**. HTTPS is unavailable by default. If you want to use HTTPS, log on to the SLB console, go to the Quota Center page, and then apply for the privilege to use HTTPS on the **ALB** tab.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The path that is used for health checks.
> This parameter takes effect only when **HealthCheckProtocol** is set to **HTTP** or **HTTPS**. HTTPS is unavailable by default. If you want to use HTTPS, log on to the SLB console, go to the Quota Center page, and then apply for the privilege to use HTPS on the **ALB** tab.
@NameInMap(value="HealthCheckProtocol") public String healthCheckProtocol
The protocol that you want to use for health checks. Valid values:
* **HTTP**: ALB performs HTTP health checks by sending HEAD or GET requests to a backend server to check whether the backend server is healthy.
* **HTTPS**: ALB performs HTTPS health checks by sending HEAD or GET requests to a backend server to check whether the backend server is healthy. HTTPS supports data encryption and provides higher data security than HTTP.
* **TCP**: To perform TCP health checks, ALB sends SYN packets to the backend server to check whether the port of the backend server is available to receive requests.
* **gRPC**: ALB performs gRPC health checks by sending POST or GET requests to a backend server to check whether the backend server is healthy.
> HTTPS is unavailable by default. If you want to use HTTPS, log on to the SLB console, go to the Quota Center page, and then apply for the privilege to use HTTPS on the **ALB** tab.
@NameInMap(value="HealthCheckTimeout") public Integer healthCheckTimeout
The timeout period for a health check response. If a backend server does not respond within the specified timeout period, the backend server fails the health check. Unit: seconds.
@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 is changed from **fail** to **success**.
@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**.
public ListServerGroupsResponseBodyServerGroupsHealthCheckConfig()
public static ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig build(Map<String,?> map) throws Exception
Exceptionpublic ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckCodes(List<String> healthCheckCodes)
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckHost(String healthCheckHost)
public String getHealthCheckHost()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckHttpVersion(String healthCheckHttpVersion)
public String getHealthCheckHttpVersion()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckMethod(String healthCheckMethod)
public String getHealthCheckMethod()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthCheckTimeout(Integer healthCheckTimeout)
public Integer getHealthCheckTimeout()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsHealthCheckConfig setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2024. All rights reserved.