GoogleCloudRunV2ProbeResponse class
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Constructors
-
GoogleCloudRunV2ProbeResponse({required Input<
int> failureThreshold, required Input<GoogleCloudRunV2GRPCActionResponse> grpc, required Input<GoogleCloudRunV2HTTPGetActionResponse> httpGet, required Input<int> initialDelaySeconds, required Input<int> periodSeconds, required Input<GoogleCloudRunV2TCPSocketActionResponse> tcpSocket, required Input<int> timeoutSeconds}) -
Creates a new GoogleCloudRunV2ProbeResponse.
failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.grpcGRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.httpGetHTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.initialDelaySecondsNumber 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.periodSecondsHow 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.tcpSocketTCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.timeoutSecondsNumber 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.const -
GoogleCloudRunV2ProbeResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
failureThreshold
→ Input<
int> -
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
final
-
grpc
→ Input<
GoogleCloudRunV2GRPCActionResponse> -
GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
httpGet
→ Input<
GoogleCloudRunV2HTTPGetActionResponse> -
HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
final
-
initialDelaySeconds
→ Input<
int> -
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.
final
-
periodSeconds
→ Input<
int> -
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tcpSocket
→ Input<
GoogleCloudRunV2TCPSocketActionResponse> -
TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
final
-
timeoutSeconds
→ Input<
int> -
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.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited