Class: Google::Apis::LanguageV1beta2::GpuMetric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GpuMetric

Returns a new instance of GpuMetric.



896
897
898
# File 'lib/google/apis/language_v1beta2/classes.rb', line 896

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

Instance Attribute Details

#gpu_secFixnum

Required. Seconds of GPU usage, e.g. 3600. Corresponds to the JSON property gpuSec

Returns:

  • (Fixnum)


876
877
878
# File 'lib/google/apis/language_v1beta2/classes.rb', line 876

def gpu_sec
  @gpu_sec
end

#gpu_typeString

Required. Type of GPU, e.g. NVIDIA_TESLA_V100. Corresponds to the JSON property gpuType

Returns:

  • (String)


881
882
883
# File 'lib/google/apis/language_v1beta2/classes.rb', line 881

def gpu_type
  @gpu_type
end

#machine_specString

Required. Machine spec, e.g. N1_STANDARD_4. Corresponds to the JSON property machineSpec

Returns:

  • (String)


886
887
888
# File 'lib/google/apis/language_v1beta2/classes.rb', line 886

def machine_spec
  @machine_spec
end

#tracking_labelsHash<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

Returns:

  • (Hash<String,String>)


894
895
896
# File 'lib/google/apis/language_v1beta2/classes.rb', line 894

def tracking_labels
  @tracking_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



901
902
903
904
905
906
# File 'lib/google/apis/language_v1beta2/classes.rb', line 901

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