public class UpdateHealthCheckTemplateAttributeRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
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 is used for health checks.
|
String |
healthCheckHost
The domain name that you want to use for the health check.
|
String |
healthCheckHttpVersion
The HTTP version 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 URL path that is used for health checks.
|
String |
healthCheckProtocol
The protocol that you want to use for health checks.
|
String |
healthCheckTemplateId
The template ID.
|
String |
healthCheckTemplateName
The name of the health check template.
|
Integer |
healthCheckTimeout
The timeout period of a health check.
|
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.
|
| 构造器和说明 |
|---|
UpdateHealthCheckTemplateAttributeRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
* **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
* **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a **2xx** HTTP status code is returned and the operation is performed.
@NameInMap(value="HealthCheckCodes") public List<String> healthCheckCodes
The HTTP status codes that are used to determine whether the backend server passes the health check.
* If **HealthCheckProtocol** is set to **HTTP**, **HealthCheckCodes** can be set to **http_2xx** (default), **http_3xx**, **http_4xx**, and **http_5xx**. Separate multiple HTTP status codes with a comma (,).
* If **HealthCheckProtocol** is set to **gRPC**, **HealthCheckCodes** can be set to **0 to 99**. Default value: **0**. Value ranges are supported. You can enter up to 20 value ranges and separate them with a comma (,).
> This parameter takes effect only when the **HealthCheckProtocol** parameter is set to **HTTP** or **gRPC**.
@NameInMap(value="HealthCheckConnectPort") public Integer healthCheckConnectPort
The port that is used for health checks. Valid values: **0 to 65535**. Default value: **0**. This value indicates that the port of a backend server is used for health checks.
@NameInMap(value="HealthCheckHost") public String healthCheckHost
The domain name that you want to use for the health check. Valid values:
* **$SERVER_IP** (default): the private IP addresses of backend servers. If you do not set the HealthCheckHost parameter or set the parameter to $SERVER_IP, the Application Load Balancer (ALB) uses the private IP addresses of backend servers for health checks.
* **domain**: The domain name must be 1 to 80 characters in length and can contain letters, digits, periods (.), and hyphens (-).
> This parameter is valid only if the `HealthCheckProtocol` parameter is set to **HTTP**.
@NameInMap(value="HealthCheckHttpVersion") public String healthCheckHttpVersion
The HTTP version that is used for health checks.
Valid values: **HTTP1.0** and **HTTP1.1**.
Default value: **HTTP1.1**.
> This parameter is valid only if 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**. Default value: **2**.
@NameInMap(value="HealthCheckMethod") public String healthCheckMethod
The method that you want to use for the health check. Valid values:
* **HEAD**: By default, the ALB instance sends HEAD requests to a backend server to perform HTTP health checks.
* **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.
> This parameter takes effect only when the **HealthCheckProtocol** parameter is set to **HTTP** or **gRPC**.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The URL path that is used for health checks.
The URL must be 1 to 80 characters in length and can contain only letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: `_ ; ~ ! ( ) * [ ] @ $ ^ : \\" , +`.
The URL must start with a forward slash (/).
> This parameter takes effect only when the **HealthCheckProtocol** parameter is set to **HTTP** or **gRPC**.
@NameInMap(value="HealthCheckProtocol") public String healthCheckProtocol
The protocol that you want to use for health checks. Valid values:
* **HTTP** (default): 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="HealthCheckTemplateId") public String healthCheckTemplateId
The template ID.
This parameter is required.
@NameInMap(value="HealthCheckTemplateName") public String healthCheckTemplateName
The name of the health check template.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
@NameInMap(value="HealthCheckTimeout") public Integer healthCheckTimeout
The timeout period of a health check. If a backend server does not respond within the specified timeout period, the backend server fails the health check.
Unit: seconds. Valid values: **1 to 300**. Default value: **5**.
> 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.
@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**.
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 is changed from **success** to **fail**.
Valid values: **2 to 10**.
Default value: **3**.
public UpdateHealthCheckTemplateAttributeRequest()
public static UpdateHealthCheckTemplateAttributeRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateHealthCheckTemplateAttributeRequest setClientToken(String clientToken)
public String getClientToken()
public UpdateHealthCheckTemplateAttributeRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckCodes(List<String> healthCheckCodes)
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckHost(String healthCheckHost)
public String getHealthCheckHost()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckHttpVersion(String healthCheckHttpVersion)
public String getHealthCheckHttpVersion()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckMethod(String healthCheckMethod)
public String getHealthCheckMethod()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckTemplateId(String healthCheckTemplateId)
public String getHealthCheckTemplateId()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckTemplateName(String healthCheckTemplateName)
public String getHealthCheckTemplateName()
public UpdateHealthCheckTemplateAttributeRequest setHealthCheckTimeout(Integer healthCheckTimeout)
public Integer getHealthCheckTimeout()
public UpdateHealthCheckTemplateAttributeRequest setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public UpdateHealthCheckTemplateAttributeRequest setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2024. All rights reserved.