View Source GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_MetricSpec (google_api_machine_learning v0.28.1)

MetricSpec contains the specifications to use to calculate the desired nodes count when autoscaling is enabled.

Attributes

  • name (type: String.t, default: nil) - metric name.
  • target (type: integer(), default: nil) - Target specifies the target value for the given metric; once real metric deviates from the threshold by a certain percentage, the node count changes.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1_MetricSpec{
  name: String.t() | nil,
  target: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.