Class: Google::Apis::CloudbuildV2::Probe
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Probe
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/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
-
#exec ⇒ Google::Apis::CloudbuildV2::ExecAction
ExecAction describes a "run in container" action.
-
#period_seconds ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Probe
constructor
A new instance of Probe.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Probe
Returns a new instance of Probe.
2055 2056 2057 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2055 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exec ⇒ Google::Apis::CloudbuildV2::ExecAction
ExecAction describes a "run in container" action.
Corresponds to the JSON property exec
2047 2048 2049 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2047 def exec @exec end |
#period_seconds ⇒ Fixnum
Optional. How often (in seconds) to perform the probe. Default to 10 seconds.
Minimum value is 1. +optional
Corresponds to the JSON property periodSeconds
2053 2054 2055 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2053 def period_seconds @period_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2060 2061 2062 2063 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2060 def update!(**args) @exec = args[:exec] if args.key?(:exec) @period_seconds = args[:period_seconds] if args.key?(:period_seconds) end |