public class CreateHealthCheckTemplateRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateHealthCheckTemplateRequest.CreateHealthCheckTemplateRequestTag |
| 限定符和类型 | 字段和说明 |
|---|---|
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 indicate 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 that is used for health checks.
|
String |
healthCheckProtocol
The protocol that you want to use for health checks.
|
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.
|
List<CreateHealthCheckTemplateRequest.CreateHealthCheckTemplateRequestTag> |
tag
The tags.
|
Integer |
unhealthyThreshold
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy.
|
| 构造器和说明 |
|---|
CreateHealthCheckTemplateRequest() |
@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 value of RequestId as the value of ClientToken. 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 indicate whether the backend server passes the health check.
@NameInMap(value="HealthCheckConnectPort") public Integer healthCheckConnectPort
The 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="HealthCheckHost") public String healthCheckHost
The domain name that you want to use for the health check.
Default value: **$SERVER_IP**. The domain name must be 1 to 80 characters in length. The domain name must meet the following requirements:
* The domain name can contain lowercase letters, digits, hyphens (-), and periods (.).
* The domain name must contain at least one period (.) but cannot start or end with a period (.).
* The rightmost domain label can contain only letters but cannot contain digits or hyphens (-).
* Other fields cannot start or end with a hyphen (-).
This parameter is required 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: **HTTP 1.0** and **HTTP 1.1**.
Default value: **HTTP 1.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.
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.
* **POST**: gRPC health checks automatically use the POST method.
* **GET**: If the length of a response exceeds 8 KB, the response is truncated. However, the health check result is not affected.
> This parameter takes effect only when the **HealthCheckProtocol** parameter is set to **HTTP** or **gRPC**.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The URL that is used for health checks.
It must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). It can also contain the following extended characters: `_ ; ~ ! ( ) * [ ] @ $ ^ : \\" , +`. The URL must start with a forward slash (/).
> This parameter is valid only if 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** (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="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.
This parameter is required.
@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.
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="Tag") public List<CreateHealthCheckTemplateRequest.CreateHealthCheckTemplateRequestTag> tag
The tags.
@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 static CreateHealthCheckTemplateRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateHealthCheckTemplateRequest setClientToken(String clientToken)
public String getClientToken()
public CreateHealthCheckTemplateRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateHealthCheckTemplateRequest setHealthCheckCodes(List<String> healthCheckCodes)
public CreateHealthCheckTemplateRequest setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public CreateHealthCheckTemplateRequest setHealthCheckHost(String healthCheckHost)
public String getHealthCheckHost()
public CreateHealthCheckTemplateRequest setHealthCheckHttpVersion(String healthCheckHttpVersion)
public String getHealthCheckHttpVersion()
public CreateHealthCheckTemplateRequest setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public CreateHealthCheckTemplateRequest setHealthCheckMethod(String healthCheckMethod)
public String getHealthCheckMethod()
public CreateHealthCheckTemplateRequest setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public CreateHealthCheckTemplateRequest setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public CreateHealthCheckTemplateRequest setHealthCheckTemplateName(String healthCheckTemplateName)
public String getHealthCheckTemplateName()
public CreateHealthCheckTemplateRequest setHealthCheckTimeout(Integer healthCheckTimeout)
public Integer getHealthCheckTimeout()
public CreateHealthCheckTemplateRequest setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public CreateHealthCheckTemplateRequest setTag(List<CreateHealthCheckTemplateRequest.CreateHealthCheckTemplateRequestTag> tag)
public List<CreateHealthCheckTemplateRequest.CreateHealthCheckTemplateRequestTag> getTag()
public CreateHealthCheckTemplateRequest setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2024. All rights reserved.