Class: Google::Apis::LanguageV2::RamMetric

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RamMetric

Returns a new instance of RamMetric.



831
832
833
# File 'lib/google/apis/language_v2/classes.rb', line 831

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

Instance Attribute Details

#gib_secFixnum

Required. VM memory in Gigabyte second, e.g. 3600. Using int64 type to match billing metrics definition. Corresponds to the JSON property gibSec

Returns:

  • (Fixnum)


806
807
808
# File 'lib/google/apis/language_v2/classes.rb', line 806

def gib_sec
  @gib_sec
end

#machine_specString

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

Returns:

  • (String)


811
812
813
# File 'lib/google/apis/language_v2/classes.rb', line 811

def machine_spec
  @machine_spec
end

#memoriesFloat

Required. VM memory in gb. Corresponds to the JSON property memories

Returns:

  • (Float)


816
817
818
# File 'lib/google/apis/language_v2/classes.rb', line 816

def memories
  @memories
end

#ram_typeString

Required. Type of ram. Corresponds to the JSON property ramType

Returns:

  • (String)


821
822
823
# File 'lib/google/apis/language_v2/classes.rb', line 821

def ram_type
  @ram_type
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>)


829
830
831
# File 'lib/google/apis/language_v2/classes.rb', line 829

def tracking_labels
  @tracking_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
840
841
842
# File 'lib/google/apis/language_v2/classes.rb', line 836

def update!(**args)
  @gib_sec = args[:gib_sec] if args.key?(:gib_sec)
  @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
  @memories = args[:memories] if args.key?(:memories)
  @ram_type = args[:ram_type] if args.key?(:ram_type)
  @tracking_labels = args[:tracking_labels] if args.key?(:tracking_labels)
end