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
-
#accelerator_type ⇒ String
Optional.
-
#milli_accelerator_seconds ⇒ Fixnum
Optional.
-
#milli_dcu_seconds ⇒ Fixnum
Optional.
-
#shuffle_storage_gb_seconds ⇒ Fixnum
Optional.
-
#update_time ⇒ String
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.
11463 11464 11465 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11463 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_type ⇒ String
Optional. DEPRECATED Accelerator type being used, if any
Corresponds to the JSON property acceleratorType
11436 11437 11438 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11436 def accelerator_type @accelerator_type end |
#milli_accelerator_seconds ⇒ Fixnum
Optional. DEPRECATED Accelerator usage in (milliAccelerator x seconds) (see
Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/
pricing)).
Corresponds to the JSON property milliAcceleratorSeconds
11443 11444 11445 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11443 def milli_accelerator_seconds @milli_accelerator_seconds end |
#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
11450 11451 11452 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11450 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
11456 11457 11458 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11456 def shuffle_storage_gb_seconds @shuffle_storage_gb_seconds end |
#update_time ⇒ String
Optional. The timestamp of the usage metrics.
Corresponds to the JSON property updateTime
11461 11462 11463 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11461 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11468 11469 11470 11471 11472 11473 11474 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11468 def update!(**args) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) @milli_accelerator_seconds = args[:milli_accelerator_seconds] if args.key?(:milli_accelerator_seconds) @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) @update_time = args[:update_time] if args.key?(:update_time) end |