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.
2026 2027 2028 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2026 def initialize(**args) update!(**args) end |
Instance Attribute Details
#timestamp ⇒ String
Required. Timestamp of the measurement.
Corresponds to the JSON property timestamp
2019 2020 2021 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2019 def @timestamp end |
#utilization ⇒ Google::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 |