GoogleApi.Recommender.V1.Model.GoogleCloudRecommenderV1CostProjection (google_api_recommender v0.13.2) View Source

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

Attributes

  • cost (type: GoogleApi.Recommender.V1.Model.GoogleTypeMoney.t, default: nil) - An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units.
  • duration (type: String.t, default: nil) - Duration for which this cost applies.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Recommender.V1.Model.GoogleCloudRecommenderV1CostProjection{
  cost: GoogleApi.Recommender.V1.Model.GoogleTypeMoney.t() | nil,
  duration: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.