Class: Google::Apis::AppengineV1beta::CpuUtilization

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/appengine_v1beta/classes.rb,
lib/google/apis/appengine_v1beta/representations.rb,
lib/google/apis/appengine_v1beta/representations.rb

Overview

Target scaling by CPU usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CpuUtilization

Returns a new instance of CpuUtilization.



669
670
671
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 669

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

Instance Attribute Details

#aggregation_window_lengthString

Period of time over which CPU utilization is calculated. Corresponds to the JSON property aggregationWindowLength

Returns:

  • (String)


662
663
664
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 662

def aggregation_window_length
  @aggregation_window_length
end

#target_utilizationFloat

Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1. Corresponds to the JSON property targetUtilization

Returns:

  • (Float)


667
668
669
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 667

def target_utilization
  @target_utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 674

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