Class: Google::Apis::DataprocV1::UsageMetrics

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsageMetrics

Returns a new instance of UsageMetrics.



11156
11157
11158
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11156

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accelerator_typeString

Optional. Accelerator type being used, if any Corresponds to the JSON property acceleratorType

Returns:

  • (String)


11135
11136
11137
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11135

def accelerator_type
  @accelerator_type
end

#milli_accelerator_secondsFixnum

Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)). Corresponds to the JSON property milliAcceleratorSeconds

Returns:

  • (Fixnum)


11141
11142
11143
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11141

def milli_accelerator_seconds
  @milli_accelerator_seconds
end

#milli_dcu_secondsFixnum

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

Returns:

  • (Fixnum)


11148
11149
11150
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11148

def milli_dcu_seconds
  @milli_dcu_seconds
end

#shuffle_storage_gb_secondsFixnum

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

Returns:

  • (Fixnum)


11154
11155
11156
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11154

def shuffle_storage_gb_seconds
  @shuffle_storage_gb_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11161
11162
11163
11164
11165
11166
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11161

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)
end