Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::Probe.
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#failure_threshold
def failure_threshold() -> ::Integer
- (::Integer) — Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
#failure_threshold=
def failure_threshold=(value) -> ::Integer
- value (::Integer) — Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- (::Integer) — Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
#grpc
def grpc() -> ::Google::Cloud::Run::V2::GRPCAction
-
(::Google::Cloud::Run::V2::GRPCAction) — Optional. GRPC specifies an action involving a gRPC port.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
grpc
,http_get
,tcp_socket
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#grpc=
def grpc=(value) -> ::Google::Cloud::Run::V2::GRPCAction
-
value (::Google::Cloud::Run::V2::GRPCAction) — Optional. GRPC specifies an action involving a gRPC port.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
grpc
,http_get
,tcp_socket
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Run::V2::GRPCAction) — Optional. GRPC specifies an action involving a gRPC port.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
grpc
,http_get
,tcp_socket
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#http_get
def http_get() -> ::Google::Cloud::Run::V2::HTTPGetAction
-
(::Google::Cloud::Run::V2::HTTPGetAction) — Optional. HTTPGet specifies the http request to perform.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
http_get
,tcp_socket
,grpc
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#http_get=
def http_get=(value) -> ::Google::Cloud::Run::V2::HTTPGetAction
-
value (::Google::Cloud::Run::V2::HTTPGetAction) — Optional. HTTPGet specifies the http request to perform.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
http_get
,tcp_socket
,grpc
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Run::V2::HTTPGetAction) — Optional. HTTPGet specifies the http request to perform.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
http_get
,tcp_socket
,grpc
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#initial_delay_seconds
def initial_delay_seconds() -> ::Integer
- (::Integer) — Optional. 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.
#initial_delay_seconds=
def initial_delay_seconds=(value) -> ::Integer
- value (::Integer) — Optional. 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.
- (::Integer) — Optional. 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.
#period_seconds
def period_seconds() -> ::Integer
- (::Integer) — Optional. 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.
#period_seconds=
def period_seconds=(value) -> ::Integer
- value (::Integer) — Optional. 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.
- (::Integer) — Optional. 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.
#tcp_socket
def tcp_socket() -> ::Google::Cloud::Run::V2::TCPSocketAction
-
(::Google::Cloud::Run::V2::TCPSocketAction) — Optional. TCPSocket specifies an action involving a TCP port.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
tcp_socket
,http_get
,grpc
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#tcp_socket=
def tcp_socket=(value) -> ::Google::Cloud::Run::V2::TCPSocketAction
-
value (::Google::Cloud::Run::V2::TCPSocketAction) — Optional. TCPSocket specifies an action involving a TCP port.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
tcp_socket
,http_get
,grpc
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Run::V2::TCPSocketAction) — Optional. TCPSocket specifies an action involving a TCP port.
Exactly one of httpGet, tcpSocket, or grpc must be specified.
Note: The following fields are mutually exclusive:
tcp_socket
,http_get
,grpc
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#timeout_seconds
def timeout_seconds() -> ::Integer
- (::Integer) — Optional. 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.
#timeout_seconds=
def timeout_seconds=(value) -> ::Integer
- value (::Integer) — Optional. 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.
- (::Integer) — Optional. 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.