Class: Google::Apis::MlV1::GoogleCloudMlV1MeasurementMetric
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1MeasurementMetric
- 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
-
#metric ⇒ String
Required.
-
#value ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1MeasurementMetric
constructor
A new instance of GoogleCloudMlV1MeasurementMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#metric ⇒ String
Required. Metric name.
Corresponds to the JSON property metric
153 154 155 |
# File 'generated/google/apis/ml_v1/classes.rb', line 153 def metric @metric end |
#value ⇒ Float
Required. The value for this metric.
Corresponds to the JSON property value
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 |