Class: Google::Apis::AppengineV1beta4::CpuUtilization
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::CpuUtilization
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/appengine_v1beta4/classes.rb,
generated/google/apis/appengine_v1beta4/representations.rb,
generated/google/apis/appengine_v1beta4/representations.rb
Overview
Target scaling by CPU usage.
Instance Attribute Summary collapse
-
#aggregation_window_length ⇒ String
The period of time over which CPU utilization is calculated.
-
#target_utilization ⇒ Float
Target (0-1) CPU utilization ratio to maintain when scaling.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CpuUtilization
constructor
A new instance of CpuUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CpuUtilization
Returns a new instance of CpuUtilization
431 432 433 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_window_length ⇒ String
The period of time over which CPU utilization is calculated.
Corresponds to the JSON property aggregationWindowLength
424 425 426 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 424 def aggregation_window_length @aggregation_window_length end |
#target_utilization ⇒ Float
Target (0-1) CPU utilization ratio to maintain when scaling.
Corresponds to the JSON property targetUtilization
429 430 431 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 429 def target_utilization @target_utilization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
436 437 438 439 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 436 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 |