View Source GoogleApi.PageSpeedOnline.V5.Model.UserPageLoadMetricV5 (google_api_page_speed_online v0.16.1)

A CrUX metric object for a single metric and form factor.

Attributes

  • category (type: String.t, default: nil) - The category of the specific time metric.
  • distributions (type: list(GoogleApi.PageSpeedOnline.V5.Model.Bucket.t), default: nil) - Metric distributions. Proportions should sum up to 1.
  • formFactor (type: String.t, default: nil) - Identifies the form factor of the metric being collected.
  • median (type: integer(), default: nil) - The median number of the metric, in millisecond.
  • metricId (type: String.t, default: nil) - Identifies the type of the metric.
  • percentile (type: integer(), default: nil) - We use this field to store certain percentile value for this metric. For v4, this field contains pc50. For v5, this field contains pc90.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.PageSpeedOnline.V5.Model.UserPageLoadMetricV5{
  category: String.t() | nil,
  distributions: [GoogleApi.PageSpeedOnline.V5.Model.Bucket.t()] | nil,
  formFactor: String.t() | nil,
  median: integer() | nil,
  metricId: String.t() | nil,
  percentile: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.