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.



2102
2103
2104
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2102

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

Instance Attribute Details

#timestampString

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

Returns:

  • (String)


2095
2096
2097
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2095

def timestamp
  @timestamp
end

#utilizationGoogle::Apis::DataflowV1b3::GpuUtilization

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



2100
2101
2102
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2100

def utilization
  @utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2107
2108
2109
2110
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2107

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