Class: Google::Apis::ChromeuxreportV1::MetricTimeseries

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chromeuxreport_v1/classes.rb,
lib/google/apis/chromeuxreport_v1/representations.rb,
lib/google/apis/chromeuxreport_v1/representations.rb

Overview

A metric timeseries 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, where each bin has density values for a particular time period.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricTimeseries

Returns a new instance of MetricTimeseries.



324
325
326
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 324

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#histogram_timeseriesArray<Google::Apis::ChromeuxreportV1::TimeseriesBin>

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, for each timeseries entry. Corresponds to the JSON property histogramTimeseries



315
316
317
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 315

def histogram_timeseries
  @histogram_timeseries
end

#percentiles_timeseriesGoogle::Apis::ChromeuxreportV1::TimeseriesPercentiles

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 percentilesTimeseries



322
323
324
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 322

def percentiles_timeseries
  @percentiles_timeseries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



329
330
331
332
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 329

def update!(**args)
  @histogram_timeseries = args[:histogram_timeseries] if args.key?(:histogram_timeseries)
  @percentiles_timeseries = args[:percentiles_timeseries] if args.key?(:percentiles_timeseries)
end