Class: Google::Apis::RunV1alpha1::Probe
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::Probe
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Instance Attribute Summary collapse
-
#failure_threshold ⇒ Fixnum
Minimum consecutive failures for the probe to be considered failed after having succeeded.
-
#handler ⇒ Google::Apis::RunV1alpha1::Handler
Handler defines a specific action that should be taken Corresponds to the JSON property
handler
. -
#initial_delay_seconds ⇒ Fixnum
Number of seconds after the container has started before liveness probes are initiated.
-
#period_seconds ⇒ Fixnum
How often (in seconds) to perform the probe.
-
#success_threshold ⇒ Fixnum
Minimum consecutive successes for the probe to be considered successful after having failed.
-
#timeout_seconds ⇒ Fixnum
Number of seconds after which the probe times out.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Probe
constructor
A new instance of Probe.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Probe
Returns a new instance of Probe.
3086 3087 3088 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3086 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failure_threshold ⇒ Fixnum
Minimum consecutive failures for the probe to be considered failed after
having succeeded. Defaults to 3. Minimum value is 1. +optional
Corresponds to the JSON property failureThreshold
3046 3047 3048 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3046 def failure_threshold @failure_threshold end |
#handler ⇒ Google::Apis::RunV1alpha1::Handler
Handler defines a specific action that should be taken
Corresponds to the JSON property handler
3051 3052 3053 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3051 def handler @handler end |
#initial_delay_seconds ⇒ Fixnum
Number of seconds after the container has started before liveness probes
are initiated. More info:
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-
probes
+optional
Corresponds to the JSON property initialDelaySeconds
3060 3061 3062 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3060 def initial_delay_seconds @initial_delay_seconds end |
#period_seconds ⇒ Fixnum
How often (in seconds) to perform the probe.
Default to 10 seconds. Minimum value is 1.
+optional
Corresponds to the JSON property periodSeconds
3067 3068 3069 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3067 def period_seconds @period_seconds end |
#success_threshold ⇒ Fixnum
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. +optional
Corresponds to the JSON property successThreshold
3074 3075 3076 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3074 def success_threshold @success_threshold end |
#timeout_seconds ⇒ Fixnum
Number of seconds after which the probe times out.
Defaults to 1 second. Minimum value is 1.
More info:
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-
probes
+optional
Corresponds to the JSON property timeoutSeconds
3084 3085 3086 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3084 def timeout_seconds @timeout_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3091 3092 3093 3094 3095 3096 3097 3098 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3091 def update!(**args) @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold) @handler = args[:handler] if args.key?(:handler) @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) @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds) end |