Class: Google::Apis::ComputeAlpha::InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#on_health_check ⇒ String
If you have configured an application-based health check for the group, this field controls whether to trigger VM autohealing based on a failed health check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers
constructor
A new instance of InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers
Returns a new instance of InstanceGroupManagerAutoHealingPolicyAutoHealingTriggers.
17259 17260 17261 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 17259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#on_health_check ⇒ String
If you have configured an application-based health check for the group, this
field controls whether to trigger VM autohealing based on a failed health
check. Valid values are: - ON (default): The group recreates running VMs that
fail the application-based health check. - OFF: When set to OFF, you can still
observe instance health state, but the group does not recreate VMs that fail
the application-based health check. This is useful for troubleshooting and
setting up your health check configuration.
Corresponds to the JSON property onHealthCheck
17257 17258 17259 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 17257 def on_health_check @on_health_check end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17264 17265 17266 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 17264 def update!(**args) @on_health_check = args[:on_health_check] if args.key?(:on_health_check) end |