Class: Google::Apis::DataflowV1b3::GpuUsage
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::GpuUsage
- 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
-
#timestamp ⇒ String
Required.
-
#utilization ⇒ Google::Apis::DataflowV1b3::GpuUtilization
Utilization details about the GPU.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GpuUsage
constructor
A new instance of GpuUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#timestamp ⇒ String
Required. Timestamp of the measurement.
Corresponds to the JSON property timestamp
2033 2034 2035 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2033 def @timestamp end |
#utilization ⇒ Google::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 |