Class: Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization

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

Overview

Configuration parameters of autoscaling based on load balancing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoscalingPolicyLoadBalancingUtilization

Returns a new instance of AutoscalingPolicyLoadBalancingUtilization



1923
1924
1925
# File 'generated/google/apis/compute_v1/classes.rb', line 1923

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

Instance Attribute Details

#utilization_targetFloat

Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. Corresponds to the JSON property utilizationTarget

Returns:

  • (Float)


1921
1922
1923
# File 'generated/google/apis/compute_v1/classes.rb', line 1921

def utilization_target
  @utilization_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1928
1929
1930
# File 'generated/google/apis/compute_v1/classes.rb', line 1928

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