public static class CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
healthCheckCodes
The HTTP status codes that are used to indicate whether the backend server passes the health check.
|
Integer |
healthCheckConnectPort
The backend port that is used for health checks.
|
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 the HTTP protocol.
|
Integer |
healthCheckInterval
The interval at which health checks are performed.
|
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 is used 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.
|
| 构造器和说明 |
|---|
CreateServerGroupRequestHealthCheckConfig() |
@NameInMap(value="HealthCheckCodes") public List<String> healthCheckCodes
The HTTP status codes that are used to indicate whether the backend server passes the health check.
@NameInMap(value="HealthCheckConnectPort") public Integer healthCheckConnectPort
The backend port that is used for health checks.
Valid values: **0** to **65535**.
Default value: **0**. If you set the value to 0, the port of a backend server is used for health checks.
@NameInMap(value="HealthCheckEnabled") public Boolean healthCheckEnabled
Specifies whether to enable the health check feature. Valid values:
* **true**: enables the health check feature.
* **false**: disables the health check feature.
> If the **ServerGroupType** parameter is set to **Instance** or **Ip**, the health check feature is enabled by default. If the **ServerGroupType** parameter is set to **Fc**, the health check feature is disabled by default.
This parameter is required.
@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 HTTPS on the **ALB** tab.
@NameInMap(value="HealthCheckHttpVersion") public String healthCheckHttpVersion
The version of the HTTP protocol. Valid values: **HTTP1.0** and **HTTP1.1**. Default value: HTTP1.1.
> 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 HTTPS on the **ALB** tab.
@NameInMap(value="HealthCheckInterval") public Integer healthCheckInterval
The interval at which health checks are performed. Unit: seconds.
Valid values: **1** to **50**.
Default value: **2**.
@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**: By default, gRPC health checks use the POST method.
* **HEAD**: HTTP and HTTPS health checks in listeners use the HEAD method by default.
> This parameter takes effect only 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.
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 URL must start with a forward slash (/).
> 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 is used 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, SLB sends SYN packets to the backend server to check whether the port of the backend server is available to receive requests.
* **gRPC**: To perform gRPC health checks, SLB sends 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, 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**.
Default value: **5**.
> If the value of **HealthCHeckTimeout** is smaller than the value of **HealthCheckInterval**, the value of **HealthCHeckTimeout** is ignored and the value of **HealthCheckInterval** is used.
@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: **3**.
@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: **3**.
public CreateServerGroupRequestHealthCheckConfig()
public static CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckCodes(List<String> healthCheckCodes)
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckEnabled(Boolean healthCheckEnabled)
public Boolean getHealthCheckEnabled()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckHost(String healthCheckHost)
public String getHealthCheckHost()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckHttpVersion(String healthCheckHttpVersion)
public String getHealthCheckHttpVersion()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckMethod(String healthCheckMethod)
public String getHealthCheckMethod()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthCheckTimeout(Integer healthCheckTimeout)
public Integer getHealthCheckTimeout()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2024. All rights reserved.