View Source GoogleApi.ChromeUXReport.V1.Model.Bin (google_api_chrome_ux_report v0.4.0)

A bin is a discrete portion of data spanning from start to end, or if no end is given, then from start to +inf. A bin's start and end values are given in the value type of the metric it represents. For example, "first contentful paint" is measured in milliseconds and exposed as ints, therefore its metric bins will use int32s for its start and end types. However, "cumulative layout shift" is measured in unitless decimals and is exposed as a decimal encoded as a string, therefore its metric bins will use strings for its value type.

Attributes

  • density (type: float(), default: nil) - The proportion of users that experienced this bin's value for the given metric.
  • end (type: any(), default: nil) - End is the end of the data bin. If end is not populated, then the bin has no end and is valid from start to +inf.
  • start (type: any(), default: nil) - Start is the beginning of the data bin.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ChromeUXReport.V1.Model.Bin{
  density: float() | nil,
  end: any() | nil,
  start: any() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.