All Products
Search
Document Center

Function Compute (2.0):CustomHealthCheckConfig

Last Updated:Mar 03, 2024
ParameterTypeDescriptionExample
object

The health check configurations for the custom runtime and custom container.

httpGetUrlstring

The health check URL of the custom container. The URL can be up to 2,048 characters in length.

/ready
initialDelaySecondsinteger

The number of seconds after the container is started before health checks are initiated. Valid values: 0 to 120. Default value: 0.

1
periodSecondsinteger

The interval between two consecutive health checks. Valid values: 1 to 120. Unit: seconds. Default value: 3.

1
timeoutSecondsinteger

The timeout period of a health check. Unit: seconds. Valid values: 1 to 3. Unit: seconds. Default value: 1.

2
failureThresholdinteger

The threshold for health check failures. When this value is reached, the system considers the check failed. Valid values: 1 to 120. Default value: 3.

1
successThresholdinteger

The threshold for health check successes. When this value is reached, the system considers the check successful. Valid values: 1 to 120. Default value: 1.

2