All Products
Search
Document Center

Function Compute:CustomHealthCheckConfig

Last Updated:Aug 02, 2024
ParameterTypeDescriptionExample
object

The information about the custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.

failureThresholdinteger

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

1
httpGetUrlstring

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

/ready
initialDelaySecondsinteger

The delay between the container startup and the health check. Valid values: 0 to 120. Default value: 0.

1
periodSecondsinteger

The health check period. 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 health check successful. Valid values: 1 to 120. Default value: 1.

2
timeoutSecondsinteger

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

2