Class: Google::Apis::LanguageV1beta2::CpuMetric
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::CpuMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Overview
Metric for billing reports.
Instance Attribute Summary collapse
-
#core_number ⇒ Fixnum
Required.
-
#core_sec ⇒ Fixnum
Required.
-
#cpu_type ⇒ String
Required.
-
#machine_spec ⇒ String
Required.
-
#tracking_labels ⇒ Hash<String,String>
Billing tracking labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CpuMetric
constructor
A new instance of CpuMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CpuMetric
Returns a new instance of CpuMetric.
652 653 654 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#core_number ⇒ Fixnum
Required. Number of CPU cores.
Corresponds to the JSON property coreNumber
627 628 629 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 627 def core_number @core_number end |
#core_sec ⇒ Fixnum
Required. Total seconds of core usage, e.g. 4.
Corresponds to the JSON property coreSec
632 633 634 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 632 def core_sec @core_sec end |
#cpu_type ⇒ String
Required. Type of cpu, e.g. N2.
Corresponds to the JSON property cpuType
637 638 639 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 637 def cpu_type @cpu_type end |
#machine_spec ⇒ String
Required. Machine spec, e.g. N1_STANDARD_4.
Corresponds to the JSON property machineSpec
642 643 644 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 642 def machine_spec @machine_spec end |
#tracking_labels ⇒ Hash<String,String>
Billing tracking labels. They do not contain any user data but only the labels
set by Vertex Core Infra itself. Tracking labels' keys are defined with
special format: goog-[\pLl
\pN
]+ E.g. "key": "goog-k8s-cluster-name","value"
: "us-east1-b4rk"
Corresponds to the JSON property trackingLabels
650 651 652 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 650 def tracking_labels @tracking_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
657 658 659 660 661 662 663 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 657 def update!(**args) @core_number = args[:core_number] if args.key?(:core_number) @core_sec = args[:core_sec] if args.key?(:core_sec) @cpu_type = args[:cpu_type] if args.key?(:cpu_type) @machine_spec = args[:machine_spec] if args.key?(:machine_spec) @tracking_labels = args[:tracking_labels] if args.key?(:tracking_labels) end |