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 snaphot represents the resources consumed by a workload at a specified time.
Instance Attribute Summary collapse
-
#milli_dcu ⇒ Fixnum
Optional.
-
#shuffle_storage_gb ⇒ 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.
5234 5235 5236 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5234 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
5221 5222 5223 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5221 def milli_dcu @milli_dcu 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
5227 5228 5229 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5227 def shuffle_storage_gb @shuffle_storage_gb end |
#snapshot_time ⇒ String
Optional. The timestamp of the usage snapshot.
Corresponds to the JSON property snapshotTime
5232 5233 5234 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5232 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5239 5240 5241 5242 5243 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5239 def update!(**args) @milli_dcu = args[:milli_dcu] if args.key?(:milli_dcu) @shuffle_storage_gb = args[:shuffle_storage_gb] if args.key?(:shuffle_storage_gb) @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time) end |