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.



7842
7843
7844
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 7842

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

Instance Attribute Details

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

Returns:

  • (Fixnum)


7840
7841
7842
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 7840

def recommended_thread_count
  @recommended_thread_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7847
7848
7849
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 7847

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