Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MeasurementMetric

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

Overview

A message representing a metric in the measurement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1MeasurementMetric

Returns a new instance of GoogleCloudAiplatformV1beta1MeasurementMetric.



30291
30292
30293
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30291

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)


30284
30285
30286
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30284

def metric_id
  @metric_id
end

#valueFloat

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

Returns:

  • (Float)


30289
30290
30291
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30289

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30296
30297
30298
30299
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30296

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