Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MeasurementMetric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

A message representing a metric in the measurement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1MeasurementMetric

Returns a new instance of GoogleCloudAiplatformV1MeasurementMetric.



10242
10243
10244
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10242

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

Instance Attribute Details

#metric_idString

Output only. The ID of the Metric. The Metric should be defined in StudySpec's Metrics. Corresponds to the JSON property metricId

Returns:

  • (String)


10235
10236
10237
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10235

def metric_id
  @metric_id
end

#valueFloat

Output only. The value for this metric. Corresponds to the JSON property value

Returns:

  • (Float)


10240
10241
10242
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10240

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10247
10248
10249
10250
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10247

def update!(**args)
  @metric_id = args[:metric_id] if args.key?(:metric_id)
  @value = args[:value] if args.key?(:value)
end