Class: Google::Apis::LanguageV2::GpuMetric
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::GpuMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Instance Attribute Summary collapse
-
#gpu_sec ⇒ Fixnum
Required.
-
#gpu_type ⇒ String
Required.
-
#machine_spec ⇒ String
Required.
-
#tracking_labels ⇒ Hash<String,String>
Billing tracking labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GpuMetric
constructor
A new instance of GpuMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GpuMetric
Returns a new instance of GpuMetric.
696 697 698 |
# File 'lib/google/apis/language_v2/classes.rb', line 696 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gpu_sec ⇒ Fixnum
Required. Seconds of GPU usage, e.g. 3600.
Corresponds to the JSON property gpuSec
676 677 678 |
# File 'lib/google/apis/language_v2/classes.rb', line 676 def gpu_sec @gpu_sec end |
#gpu_type ⇒ String
Required. Type of GPU, e.g. NVIDIA_TESLA_V100.
Corresponds to the JSON property gpuType
681 682 683 |
# File 'lib/google/apis/language_v2/classes.rb', line 681 def gpu_type @gpu_type end |
#machine_spec ⇒ String
Required. Machine spec, e.g. N1_STANDARD_4.
Corresponds to the JSON property machineSpec
686 687 688 |
# File 'lib/google/apis/language_v2/classes.rb', line 686 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
694 695 696 |
# File 'lib/google/apis/language_v2/classes.rb', line 694 def tracking_labels @tracking_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
701 702 703 704 705 706 |
# File 'lib/google/apis/language_v2/classes.rb', line 701 def update!(**args) @gpu_sec = args[:gpu_sec] if args.key?(:gpu_sec) @gpu_type = args[:gpu_type] if args.key?(:gpu_type) @machine_spec = args[:machine_spec] if args.key?(:machine_spec) @tracking_labels = args[:tracking_labels] if args.key?(:tracking_labels) end |