class Google::Apis::AppengineV1beta5::CpuUtilization
Target scaling by CPU usage.
Attributes
aggregation_window_length[RW]
Period of time over which CPU utilization is calculated. Corresponds to the JSON property `aggregationWindowLength` @return [String]
target_utilization[RW]
Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1. Corresponds to the JSON property `targetUtilization` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/appengine_v1beta5/classes.rb, line 334 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/appengine_v1beta5/classes.rb, line 339 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