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.



2026
2027
2028
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2026

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

Instance Attribute Details

#timestampString

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

Returns:

  • (String)


2019
2020
2021
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2019

def timestamp
  @timestamp
end

#utilizationGoogle::Apis::DataflowV1b3::GpuUtilization

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



2024
2025
2026
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2024

def utilization
  @utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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