Class: Google::Apis::ComputeAlpha::AutoscalingPolicyLoadBalancingUtilization
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AutoscalingPolicyLoadBalancingUtilization
- 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
Overview
Configuration parameters of autoscaling based on load balancing.
Instance Attribute Summary collapse
-
#utilization_target ⇒ Float
Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the autoscaler maintains.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingPolicyLoadBalancingUtilization
constructor
A new instance of AutoscalingPolicyLoadBalancingUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicyLoadBalancingUtilization
Returns a new instance of AutoscalingPolicyLoadBalancingUtilization.
2819 2820 2821 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 2819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#utilization_target ⇒ Float
Fraction of backend capacity utilization (set in HTTP(S) load balancing
configuration) that the autoscaler maintains. Must be a positive float value.
If not defined, the default is 0.8.
Corresponds to the JSON property utilizationTarget
2817 2818 2819 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 2817 def utilization_target @utilization_target end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2824 2825 2826 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 2824 def update!(**args) @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end |