import * as $dara from '@darabonba/typescript'; export declare class CreateHealthCheckTemplateRequestTag extends $dara.Model { /** * @remarks * The tag key. The tag key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`. * * @example * env */ key?: string; /** * @remarks * The tag value. The tag value can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`. * * @example * product */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateHealthCheckTemplateRequest extends $dara.Model { /** * @remarks * The client token used to ensure the idempotence of the request. * * You can generate this token, but you must ensure that it is unique across requests. The token can contain only ASCII characters. * * > If you do not specify this parameter, the system uses the `RequestId` of the request as the client token. Each API request has a unique `RequestId`. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B****** */ clientToken?: string; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - **true**: Performs a dry run. The system checks the request for potential issues, including missing required parameters, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. The resource is not created. * * - **false** (default): Sends a normal request. If the request is valid, a 2xx HTTP status code is returned and the health check template is created. * * @example * true */ dryRun?: boolean; /** * @remarks * The HTTP status codes that indicate a successful health check. * * @example * 5 */ healthCheckCodes?: string[]; /** * @remarks * The port 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. * * @example * 80 */ healthCheckConnectPort?: number; /** * @remarks * The domain name used for the health check. Valid values: * * - **$SERVER_IP**: The private IP address of a backend server. If you set this parameter to `$SERVER_IP` or leave it empty, the load balancer uses the private IP address of the backend server as the domain name for the health check. * * - **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 when the `HealthCheckProtocol` parameter is set to **HTTP** or **HTTPS**. * * @example * $SERVER_IP */ healthCheckHost?: string; /** * @remarks * The version of the HTTP protocol that is used for the health check. * * Valid values: **HTTP1.0** and **HTTP1.1**. * * Default value: **HTTP1.1**. * * > This parameter takes effect only when the `HealthCheckProtocol` parameter is set to **HTTP** or **HTTPS**. * * @example * HTTP 1.0 */ healthCheckHttpVersion?: string; /** * @remarks * The interval at which health checks are performed. * * Valid values: **1** to **50**. Unit: seconds. * * Default value: **2**. Unit: seconds. * * @example * 2 */ healthCheckInterval?: number; /** * @remarks * The method used for the health check. Valid values: * * - **HEAD** (default): For HTTP and HTTPS listeners, the default health check method is HEAD. * * - **POST**: For gRPC listeners, the default health check method is POST. * * - **GET**: If the response body exceeds 8 KB, it is truncated. This does not affect the health check result. * * > This parameter takes effect only when the `HealthCheckProtocol` parameter is set to **HTTP**, **HTTPS**, or **gRPC**. * * @example * HEAD */ healthCheckMethod?: string; /** * @remarks * The URL that is used for health checks. * * The URL must be 1 to 80 characters in length. It must start with a forward slash (/) and can contain letters, digits, and the following special characters: `- / . % ? # & _;~!()*[]@$^:\\",+`. * * > This parameter takes effect only when the `HealthCheckProtocol` parameter is set to **HTTP** or **HTTPS**. * * @example * /test/index.html */ healthCheckPath?: string; /** * @remarks * The protocol used for the health check. Valid values: * * - **HTTP** (default): simulates browser access by sending HEAD or GET requests to check whether the server application is healthy. * * - **HTTPS**: simulates browser access by sending HEAD or GET requests to check whether the server application is healthy. HTTPS provides encrypted data transmission and is more secure than HTTP. * * - **TCP**: checks whether the server port is responsive by sending SYN packets. * * - **gRPC**: checks whether the server application is healthy by sending POST or GET requests. * * @example * HTTP */ healthCheckProtocol?: string; /** * @remarks * The name of the health check template. * * The name must be 2 to 128 characters in length, must start with a letter, a digit, or a Chinese character, and can contain digits, periods (.), underscores (_), hyphens (-), and spaces. * * This parameter is required. * * @example * HealthCheckTemplate1 */ healthCheckTemplateName?: string; /** * @remarks * The timeout period for a health check response. If a backend server does not respond within this period, the health check fails. * * Valid values: **1** to **300**. Unit: seconds. * * Default value: **5**. Unit: seconds. * * @example * 5 */ healthCheckTimeout?: number; /** * @remarks * The number of consecutive successful health checks required to change the health status of a backend server from **unhealthy** to **healthy**. * * Valid values: **2** to **10**. * * Default value: **3**. * * @example * 4 */ healthyThreshold?: number; /** * @remarks * The ID of the resource group. * * @example * rg-atstuj3rtop**** */ resourceGroupId?: string; /** * @remarks * The tags. */ tag?: CreateHealthCheckTemplateRequestTag[]; /** * @remarks * The number of consecutive failed health checks required to change the health status of a backend server from **healthy** to **unhealthy**. * * Valid values: **2** to **10**. * * Default value: **3**. * * @example * 4 */ unhealthyThreshold?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }