Class: Google::Apis::DataprocV1::UsageSnapshot
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::UsageSnapshot
- 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
The usage snapshot represents the resources consumed by a workload at a specified time.
Instance Attribute Summary collapse
-
#accelerator_type ⇒ String
Optional.
-
#milli_accelerator ⇒ Fixnum
Optional.
-
#milli_dcu ⇒ Fixnum
Optional.
-
#milli_dcu_premium ⇒ Fixnum
Optional.
-
#shuffle_storage_gb ⇒ Fixnum
Optional.
-
#shuffle_storage_gb_premium ⇒ Fixnum
Optional.
-
#snapshot_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsageSnapshot
constructor
A new instance of UsageSnapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UsageSnapshot
Returns a new instance of UsageSnapshot.
6004 6005 6006 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6004 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_type ⇒ String
Optional. Accelerator type being used, if any
Corresponds to the JSON property acceleratorType
5965 5966 5967 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5965 def accelerator_type @accelerator_type end |
#milli_accelerator ⇒ Fixnum
Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing))
Corresponds to the JSON property milliAccelerator
5971 5972 5973 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5971 def milli_accelerator @milli_accelerator end |
#milli_dcu ⇒ Fixnum
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc
Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
Corresponds to the JSON property milliDcu
5977 5978 5979 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5977 def milli_dcu @milli_dcu end |
#milli_dcu_premium ⇒ Fixnum
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at
premium tier (see Dataproc Serverless pricing (https://cloud.google.com/
dataproc-serverless/pricing)).
Corresponds to the JSON property milliDcuPremium
5984 5985 5986 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5984 def milli_dcu_premium @milli_dcu_premium end |
#shuffle_storage_gb ⇒ Fixnum
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing (
https://cloud.google.com/dataproc-serverless/pricing))
Corresponds to the JSON property shuffleStorageGb
5990 5991 5992 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5990 def shuffle_storage_gb @shuffle_storage_gb end |
#shuffle_storage_gb_premium ⇒ Fixnum
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see
Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/
pricing))
Corresponds to the JSON property shuffleStorageGbPremium
5997 5998 5999 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5997 def shuffle_storage_gb_premium @shuffle_storage_gb_premium end |
#snapshot_time ⇒ String
Optional. The timestamp of the usage snapshot.
Corresponds to the JSON property snapshotTime
6002 6003 6004 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6002 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6009 6010 6011 6012 6013 6014 6015 6016 6017 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6009 def update!(**args) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) @milli_accelerator = args[:milli_accelerator] if args.key?(:milli_accelerator) @milli_dcu = args[:milli_dcu] if args.key?(:milli_dcu) @milli_dcu_premium = args[:milli_dcu_premium] if args.key?(:milli_dcu_premium) @shuffle_storage_gb = args[:shuffle_storage_gb] if args.key?(:shuffle_storage_gb) @shuffle_storage_gb_premium = args[:shuffle_storage_gb_premium] if args.key?(:shuffle_storage_gb_premium) @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time) end |