View Source GoogleApi.Recommender.V1.Model.GoogleCloudRecommenderV1SustainabilityProjection (google_api_recommender v0.21.0)

Contains metadata about how much sustainability a recommendation can save or incur.

Attributes

  • duration (type: String.t, default: nil) - Duration for which this sustainability applies.
  • kgCO2e (type: float(), default: nil) - Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Recommender.V1.Model.GoogleCloudRecommenderV1SustainabilityProjection{
    duration: String.t() | nil,
    kgCO2e: float() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.