Class: Google::Apis::DataflowV1b3::GpuUtilization

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

Utilization details about the GPU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GpuUtilization

Returns a new instance of GpuUtilization.



2047
2048
2049
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2047

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

Instance Attribute Details

#rateFloat

Required. GPU utilization rate of any kernel over the last sample period in the range of [0, 1]. Corresponds to the JSON property rate

Returns:

  • (Float)


2045
2046
2047
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2045

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2052
2053
2054
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2052

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