Class: Google::Apis::AppengineV1beta::StandardSchedulerSettings
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta::StandardSchedulerSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appengine_v1beta/classes.rb,
generated/google/apis/appengine_v1beta/representations.rb,
generated/google/apis/appengine_v1beta/representations.rb
Overview
Scheduler settings for standard environment.
Instance Attribute Summary collapse
-
#max_instances ⇒ Fixnum
Maximum number of instances to run for this version.
-
#min_instances ⇒ Fixnum
Minimum number of instances to run for this version.
-
#target_cpu_utilization ⇒ Float
Target CPU utilization ratio to maintain when scaling.
-
#target_throughput_utilization ⇒ Float
Target throughput utilization ratio to maintain when scaling Corresponds to the JSON property
targetThroughputUtilization
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StandardSchedulerSettings
constructor
A new instance of StandardSchedulerSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StandardSchedulerSettings
Returns a new instance of StandardSchedulerSettings
2578 2579 2580 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2578 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_instances ⇒ Fixnum
Maximum number of instances to run for this version. Set to zero to disable
max_instances configuration.
Corresponds to the JSON property maxInstances
2560 2561 2562 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2560 def max_instances @max_instances end |
#min_instances ⇒ Fixnum
Minimum number of instances to run for this version. Set to zero to disable
min_instances configuration.
Corresponds to the JSON property minInstances
2566 2567 2568 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2566 def min_instances @min_instances end |
#target_cpu_utilization ⇒ Float
Target CPU utilization ratio to maintain when scaling.
Corresponds to the JSON property targetCpuUtilization
2571 2572 2573 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2571 def target_cpu_utilization @target_cpu_utilization end |
#target_throughput_utilization ⇒ Float
Target throughput utilization ratio to maintain when scaling
Corresponds to the JSON property targetThroughputUtilization
2576 2577 2578 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2576 def target_throughput_utilization @target_throughput_utilization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2583 2584 2585 2586 2587 2588 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2583 def update!(**args) @max_instances = args[:max_instances] if args.key?(:max_instances) @min_instances = args[:min_instances] if args.key?(:min_instances) @target_cpu_utilization = args[:target_cpu_utilization] if args.key?(:target_cpu_utilization) @target_throughput_utilization = args[:target_throughput_utilization] if args.key?(:target_throughput_utilization) end |