public static class ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
healthCheckCodes
The HTTP status codes.
|
Integer |
healthCheckConnectPort
The port that is used for health checks.
|
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 at which health checks are performed.
|
String |
healthCheckMethod
The HTTP method that is used for health checks.
|
String |
healthCheckPath
The URL that is used for health checks.
|
String |
healthCheckProtocol
The protocol that is used for health checks.
|
String |
healthCheckTemplateId
The ID of the health check template.
|
String |
healthCheckTemplateName
The name of the health check template.
|
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.
|
List<ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplatesTags> |
tags
The tags.
|
Integer |
unhealthyThreshold
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy.
|
| 构造器和说明 |
|---|
ListHealthCheckTemplatesResponseBodyHealthCheckTemplates() |
@NameInMap(value="HealthCheckCodes") public List<String> healthCheckCodes
The HTTP status codes.
@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 on a backend server is used for health checks.
@NameInMap(value="HealthCheckHost") public String healthCheckHost
The domain name that is used for health checks. Valid values:
**$SERVER_IP** (default): the private IP addresses of backend servers. If HealthCheckHost is not specified or set to $SERVER_IP, SLB 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 takes effect only if `HealthCheckProtocol` 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 takes effect only if `HealthCheckProtocol` 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 HTTP method that is used for health checks. Valid values:
* **HEAD** (default): By default, HTTP health checks use the HEAD method.
* **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.
> This parameter takes effect only if **HealthCheckProtocol** is set to **HTTP** or **gRPC**.
@NameInMap(value="HealthCheckPath") public String healthCheckPath
The URL 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 (/).
@NameInMap(value="HealthCheckProtocol") public String healthCheckProtocol
The protocol that is used for health checks. Valid values:
* **HTTP** (default): The SLB instance sends HEAD or GET requests to a backend server to simulate access from a browser and check whether the backend server is healthy.
* **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.
@NameInMap(value="HealthCheckTemplateId") public String healthCheckTemplateId
The ID of the health check template.
@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 for a health check response. If a backend Elastic Compute Service (ECS) instance does not return a health check response within the specified timeout period, the backend server fails the health check.
Valid values: **1 to 300**. Unit: seconds.
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="Tags") public List<ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplatesTags> tags
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 changes from **success** to **fail**.
Valid values: **2 to 10**.
Default value: **3**.
public ListHealthCheckTemplatesResponseBodyHealthCheckTemplates()
public static ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates build(Map<String,?> map) throws Exception
Exceptionpublic ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckCodes(List<String> healthCheckCodes)
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckConnectPort(Integer healthCheckConnectPort)
public Integer getHealthCheckConnectPort()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckHost(String healthCheckHost)
public String getHealthCheckHost()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckHttpVersion(String healthCheckHttpVersion)
public String getHealthCheckHttpVersion()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckInterval(Integer healthCheckInterval)
public Integer getHealthCheckInterval()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckMethod(String healthCheckMethod)
public String getHealthCheckMethod()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckPath(String healthCheckPath)
public String getHealthCheckPath()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckProtocol(String healthCheckProtocol)
public String getHealthCheckProtocol()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckTemplateId(String healthCheckTemplateId)
public String getHealthCheckTemplateId()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckTemplateName(String healthCheckTemplateName)
public String getHealthCheckTemplateName()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthCheckTimeout(Integer healthCheckTimeout)
public Integer getHealthCheckTimeout()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setHealthyThreshold(Integer healthyThreshold)
public Integer getHealthyThreshold()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setTags(List<ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplatesTags> tags)
public List<ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplatesTags> getTags()
public ListHealthCheckTemplatesResponseBody.ListHealthCheckTemplatesResponseBodyHealthCheckTemplates setUnhealthyThreshold(Integer unhealthyThreshold)
public Integer getUnhealthyThreshold()
Copyright © 2024. All rights reserved.