View Source GoogleApi.Container.V1.Model.Metric (google_api_container v0.45.0)

Progress metric is (string, int|float|string) pair.

Attributes

  • doubleValue (type: float(), default: nil) - For metrics with floating point value.
  • intValue (type: String.t, default: nil) - For metrics with integer value.
  • name (type: String.t, default: nil) - Required. Metric name, e.g., "nodes total", "percent done".
  • stringValue (type: String.t, default: nil) - For metrics with custom values (ratios, visual progress, etc.).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Container.V1.Model.Metric{
  doubleValue: float() | nil,
  intValue: String.t() | nil,
  name: String.t() | nil,
  stringValue: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.