class Google::Apis::MlV1::GoogleCloudMlV1MetricSpec
MetricSpec contains the specifications to use to calculate the desired nodes count when autoscaling is enabled.
Attributes
name[RW]
metric name. Corresponds to the JSON property `name` @return [String]
target[RW]
Target specifies the target value for the given metric; once real metric deviates from the threshold by a certain percentage, the node count changes. Corresponds to the JSON property `target` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/ml_v1/classes.rb, line 1722 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/ml_v1/classes.rb, line 1727 def update!(**args) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end