Class: Google::Apis::AppengineV1::StandardSchedulerSettings

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

Overview

Scheduler settings for standard environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StandardSchedulerSettings


2348
2349
2350
# File 'generated/google/apis/appengine_v1/classes.rb', line 2348

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

Instance Attribute Details

#max_instancesFixnum

Maximum number of instances to run for this version. Set to zero to disable max_instances configuration. Corresponds to the JSON property maxInstances


2330
2331
2332
# File 'generated/google/apis/appengine_v1/classes.rb', line 2330

def max_instances
  @max_instances
end

#min_instancesFixnum

Minimum number of instances to run for this version. Set to zero to disable min_instances configuration. Corresponds to the JSON property minInstances


2336
2337
2338
# File 'generated/google/apis/appengine_v1/classes.rb', line 2336

def min_instances
  @min_instances
end

#target_cpu_utilizationFloat

Target CPU utilization ratio to maintain when scaling. Corresponds to the JSON property targetCpuUtilization


2341
2342
2343
# File 'generated/google/apis/appengine_v1/classes.rb', line 2341

def target_cpu_utilization
  @target_cpu_utilization
end

#target_throughput_utilizationFloat

Target throughput utilization ratio to maintain when scaling Corresponds to the JSON property targetThroughputUtilization


2346
2347
2348
# File 'generated/google/apis/appengine_v1/classes.rb', line 2346

def target_throughput_utilization
  @target_throughput_utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2353
2354
2355
2356
2357
2358
# File 'generated/google/apis/appengine_v1/classes.rb', line 2353

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