class Google::Apis::RunV1alpha1::Probe

Not supported by Cloud Run Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

Attributes

exec[RW]

Not supported by Cloud Run ExecAction describes a “run in container” action. Corresponds to the JSON property `exec` @return [Google::Apis::RunV1alpha1::ExecAction]

failure_threshold[RW]

(Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Corresponds to the JSON property `failureThreshold` @return [Fixnum]

http_get[RW]

Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get requests. Corresponds to the JSON property `httpGet` @return [Google::Apis::RunV1alpha1::HttpGetAction]

initial_delay_seconds[RW]

(Optional) Number of seconds after the container has started before liveness probes are initiated. More info: kubernetes.io/docs/concepts/workloads/ pods/pod-lifecycle#container-probes Corresponds to the JSON property `initialDelaySeconds` @return [Fixnum]

period_seconds[RW]

(Optional) How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Corresponds to the JSON property `periodSeconds` @return [Fixnum]

success_threshold[RW]

(Optional) Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. Corresponds to the JSON property `successThreshold` @return [Fixnum]

tcp_socket[RW]

Not supported by Cloud Run TCPSocketAction describes an action based on opening a socket Corresponds to the JSON property `tcpSocket` @return [Google::Apis::RunV1alpha1::TcpSocketAction]

timeout_seconds[RW]

(Optional) Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: kubernetes.io/docs/concepts/ workloads/pods/pod-lifecycle#container-probes Corresponds to the JSON property `timeoutSeconds` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 1396
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1alpha1/classes.rb, line 1401
def update!(**args)
  @exec = args[:exec] if args.key?(:exec)
  @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
  @http_get = args[:http_get] if args.key?(:http_get)
  @initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
  @period_seconds = args[:period_seconds] if args.key?(:period_seconds)
  @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
  @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
  @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
end