Class: Google::Apis::MlV1::GoogleCloudMlV1MeasurementMetric

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

Overview

A message representing a metric in the measurement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1MeasurementMetric

Returns a new instance of GoogleCloudMlV1MeasurementMetric.



160
161
162
# File 'generated/google/apis/ml_v1/classes.rb', line 160

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

Instance Attribute Details

#metricString

Required. Metric name. Corresponds to the JSON property metric

Returns:

  • (String)


153
154
155
# File 'generated/google/apis/ml_v1/classes.rb', line 153

def metric
  @metric
end

#valueFloat

Required. The value for this metric. Corresponds to the JSON property value

Returns:

  • (Float)


158
159
160
# File 'generated/google/apis/ml_v1/classes.rb', line 158

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



165
166
167
168
# File 'generated/google/apis/ml_v1/classes.rb', line 165

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