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.



2061
2062
2063
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2061

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)


2059
2060
2061
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2059

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2066
2067
2068
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2066

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