View Source GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Metric (google_api_apigee v0.46.0)

Encapsulates the metric data point. For example: { "name": "sum(message_count)", "values" : [ { "timestamp": 1549004400000, "value": "39.0" }, { "timestamp" : 1548997200000, "value" : "0.0" } ] } or { "name": "sum(message_count)", "values" : ["39.0"] }

Attributes

  • name (type: String.t, default: nil) - Metric name.
  • values (type: list(any()), default: nil) - List of metric values. Possible value formats include: "values":["39.0"] or "values":[ { "value": "39.0", "timestamp": 1232434354} ]

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Metric{
  name: String.t() | nil,
  values: [any()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.