Class: Google::Apis::ComputeBeta::AutoscalingPolicyLoadBalancingUtilization

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Overview

Configuration parameters of autoscaling based on load balancing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoscalingPolicyLoadBalancingUtilization

Returns a new instance of AutoscalingPolicyLoadBalancingUtilization.



2358
2359
2360
# File 'generated/google/apis/compute_beta/classes.rb', line 2358

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#utilization_targetFloat

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

Returns:

  • (Float)


2356
2357
2358
# File 'generated/google/apis/compute_beta/classes.rb', line 2356

def utilization_target
  @utilization_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2363
2364
2365
# File 'generated/google/apis/compute_beta/classes.rb', line 2363

def update!(**args)
  @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end