ProbeResponse constructor
- required Input<
ExecActionResponse> exec, - required Input<
int> failureThreshold, - required Input<
GRPCActionResponse> grpc, - required Input<
HTTPGetActionResponse> httpGet, - required Input<
int> initialDelaySeconds, - required Input<
int> periodSeconds, - required Input<
int> successThreshold, - required Input<
TCPSocketActionResponse> tcpSocket, - required Input<
int> timeoutSeconds,
Creates a new ProbeResponse.
exec Not supported by Cloud Run.
failureThreshold Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
grpc GRPCAction specifies an action involving a GRPC port.
httpGet HTTPGet specifies the http request to perform.
initialDelaySeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240.
periodSeconds How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.
successThreshold Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set.
tcpSocket TCPSocket specifies an action involving a TCP port.
timeoutSeconds Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds; if period_seconds is not set, must be less or equal than 10.
Implementation
const ProbeResponse({
required this.exec,
required this.failureThreshold,
required this.grpc,
required this.httpGet,
required this.initialDelaySeconds,
required this.periodSeconds,
required this.successThreshold,
required this.tcpSocket,
required this.timeoutSeconds,
});