Cloud Run V2 API - Class Google::Cloud::Run::V2::Probe (v0.6.0)

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 
 
Returns
  • (::Integer) — 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 
 
Parameter
  • value(::Integer) — Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
Returns
  • (::Integer) — 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 
 
Returns

#grpc=

  def 
  
 grpc= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 Google 
 :: 
 Cloud 
 :: 
 Run 
 :: 
 V2 
 :: 
 GRPCAction 
 
Parameter
Returns

#http_get

  def 
  
 http_get 
 () 
  
 - 
>  
 :: 
 Google 
 :: 
 Cloud 
 :: 
 Run 
 :: 
 V2 
 :: 
 HTTPGetAction 
 
Returns

#http_get=

  def 
  
 http_get= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 Google 
 :: 
 Cloud 
 :: 
 Run 
 :: 
 V2 
 :: 
 HTTPGetAction 
 
Parameter
Returns

#initial_delay_seconds

  def 
  
 initial_delay_seconds 
 () 
  
 - 
>  
 :: 
 Integer 
 
Returns
  • (::Integer) — 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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

#initial_delay_seconds=

  def 
  
 initial_delay_seconds= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 Integer 
 
Parameter
  • value(::Integer) — 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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Returns
  • (::Integer) — 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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

#period_seconds

  def 
  
 period_seconds 
 () 
  
 - 
>  
 :: 
 Integer 
 
Returns
  • (::Integer) — 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 
 
Parameter
  • value(::Integer) — 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.
Returns
  • (::Integer) — 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 
 
Returns

#tcp_socket=

  def 
  
 tcp_socket= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 Google 
 :: 
 Cloud 
 :: 
 Run 
 :: 
 V2 
 :: 
 TCPSocketAction 
 
Parameter
Returns

#timeout_seconds

  def 
  
 timeout_seconds 
 () 
  
 - 
>  
 :: 
 Integer 
 
Returns
  • (::Integer) — 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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

#timeout_seconds=

  def 
  
 timeout_seconds= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 Integer 
 
Parameter
  • value(::Integer) — 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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Returns
  • (::Integer) — 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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Design a Mobile Site
View Site in Mobile | Classic
Share by: