View Source GoogleApi.ChromeUXReport.V1.Model.Metric (google_api_chrome_ux_report v0.5.0)

A metric is a set of user experience data for a single web performance metric, like "first contentful paint". It contains a summary histogram of real world Chrome usage as a series of bins.

Attributes

  • fractions (type: map(), default: nil) - For enum metrics, provides fractions which add up to approximately 1.0.
  • histogram (type: list(GoogleApi.ChromeUXReport.V1.Model.Bin.t), default: nil) - The histogram of user experiences for a metric. The histogram will have at least one bin and the densities of all bins will add up to ~1.
  • percentiles (type: GoogleApi.ChromeUXReport.V1.Model.Percentiles.t, default: nil) - Commonly useful percentiles of the Metric. The value type for the percentiles will be the same as the value types given for the Histogram bins.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ChromeUXReport.V1.Model.Metric{
  fractions: map() | nil,
  histogram: [GoogleApi.ChromeUXReport.V1.Model.Bin.t()] | nil,
  percentiles: GoogleApi.ChromeUXReport.V1.Model.Percentiles.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.