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.



6966
6967
6968
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6966

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

Instance Attribute Details

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

Returns:

  • (Fixnum)


6964
6965
6966
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6964

def recommended_thread_count
  @recommended_thread_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6971
6972
6973
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6971

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