class Google::Apis::ChromeuxreportV1::Metric

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

histogram[RW]

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. Corresponds to the JSON property `histogram` @return [Array<Google::Apis::ChromeuxreportV1::Bin>]

percentiles[RW]

Percentiles contains synthetic values of a metric at a given statistical percentile. These are used for estimating a metric's value as experienced by a percentage of users out of the total number of users. Corresponds to the JSON property `percentiles` @return [Google::Apis::ChromeuxreportV1::Percentiles]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chromeuxreport_v1/classes.rb, line 128
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chromeuxreport_v1/classes.rb, line 133
def update!(**args)
  @histogram = args[:histogram] if args.key?(:histogram)
  @percentiles = args[:percentiles] if args.key?(:percentiles)
end