Class: Google::Apis::DataflowV1b3::Parameters

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

Overview

The parameters to use for autoscaling when this schedule is active.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Parameters

Returns a new instance of Parameters.



4199
4200
4201
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4199

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

Instance Attribute Details

#cpu_utilization_targetFloat

Optional. The target CPU utilization for this schedule. Corresponds to the JSON property cpuUtilizationTarget

Returns:

  • (Float)


4182
4183
4184
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4182

def cpu_utilization_target
  @cpu_utilization_target
end

#latency_targetString

Optional. The target latency for this schedule. Corresponds to the JSON property latencyTarget

Returns:

  • (String)


4187
4188
4189
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4187

def latency_target
  @latency_target
end

#max_worker_countFixnum

Optional. The maximum number of workers for this schedule. Corresponds to the JSON property maxWorkerCount

Returns:

  • (Fixnum)


4192
4193
4194
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4192

def max_worker_count
  @max_worker_count
end

#min_worker_countFixnum

Optional. The minimum number of workers for this schedule. Corresponds to the JSON property minWorkerCount

Returns:

  • (Fixnum)


4197
4198
4199
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4197

def min_worker_count
  @min_worker_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4204
4205
4206
4207
4208
4209
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4204

def update!(**args)
  @cpu_utilization_target = args[:cpu_utilization_target] if args.key?(:cpu_utilization_target)
  @latency_target = args[:latency_target] if args.key?(:latency_target)
  @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
  @min_worker_count = args[:min_worker_count] if args.key?(:min_worker_count)
end