Class: Google::Apis::DataprocV1::UsageMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::UsageMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
Usage metrics represent approximate total resources consumed by a workload.
Instance Attribute Summary collapse
-
#milli_dcu_seconds ⇒ Fixnum
Optional.
-
#shuffle_storage_gb_seconds ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsageMetrics
constructor
A new instance of UsageMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UsageMetrics
Returns a new instance of UsageMetrics.
5819 5820 5821 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#milli_dcu_seconds ⇒ Fixnum
Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see
Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/
pricing)).
Corresponds to the JSON property milliDcuSeconds
5811 5812 5813 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5811 def milli_dcu_seconds @milli_dcu_seconds end |
#shuffle_storage_gb_seconds ⇒ Fixnum
Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless
pricing (https://cloud.google.com/dataproc-serverless/pricing)).
Corresponds to the JSON property shuffleStorageGbSeconds
5817 5818 5819 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5817 def shuffle_storage_gb_seconds @shuffle_storage_gb_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5824 5825 5826 5827 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5824 def update!(**args) @milli_dcu_seconds = args[:milli_dcu_seconds] if args.key?(:milli_dcu_seconds) @shuffle_storage_gb_seconds = args[:shuffle_storage_gb_seconds] if args.key?(:shuffle_storage_gb_seconds) end |