Class: Google::Apis::DataflowV1b3::GpuUsage

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

Information about the GPU usage on the worker.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GpuUsage

Returns a new instance of GpuUsage.



2040
2041
2042
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2040

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

Instance Attribute Details

#timestampString

Required. Timestamp of the measurement. Corresponds to the JSON property timestamp

Returns:

  • (String)


2033
2034
2035
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2033

def timestamp
  @timestamp
end

#utilizationGoogle::Apis::DataflowV1b3::GpuUtilization

Utilization details about the GPU. Corresponds to the JSON property utilization



2038
2039
2040
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2038

def utilization
  @utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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