Class: Google::Apis::DataflowV1b3::WorkerThreadScalingReportResponse

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

Contains the thread scaling recommendation for a worker from the backend.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkerThreadScalingReportResponse

Returns a new instance of WorkerThreadScalingReportResponse.



7074
7075
7076
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 7074

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

Instance Attribute Details

Recommended number of threads for a worker. Corresponds to the JSON property recommendedThreadCount

Returns:

  • (Fixnum)


7072
7073
7074
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 7072

def recommended_thread_count
  @recommended_thread_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7079
7080
7081
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 7079

def update!(**args)
  @recommended_thread_count = args[:recommended_thread_count] if args.key?(:recommended_thread_count)
end