Class: Google::Apis::AppengineV1beta::StandardSchedulerSettings

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

Scheduler settings for standard environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StandardSchedulerSettings

Returns a new instance of StandardSchedulerSettings.



2931
2932
2933
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 2931

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

Returns:

  • (Fixnum)


2913
2914
2915
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 2913

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

Returns:

  • (Fixnum)


2919
2920
2921
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 2919

def min_instances
  @min_instances
end

#target_cpu_utilizationFloat

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

Returns:

  • (Float)


2924
2925
2926
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 2924

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

Returns:

  • (Float)


2929
2930
2931
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 2929

def target_throughput_utilization
  @target_throughput_utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2936
2937
2938
2939
2940
2941
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 2936

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