Class: Google::Apis::ChromeuxreportV1::MetricTimeseries
- Inherits:
-
Object
- Object
- Google::Apis::ChromeuxreportV1::MetricTimeseries
- 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
-
#fraction_timeseries ⇒ Hash<String,Google::Apis::ChromeuxreportV1::FractionTimeseries>
Mapping from labels to timeseries of fractions attributed to this label.
-
#histogram_timeseries ⇒ Array<Google::Apis::ChromeuxreportV1::TimeseriesBin>
The histogram of user experiences for a metric.
-
#percentiles_timeseries ⇒ Google::Apis::ChromeuxreportV1::TimeseriesPercentiles
Percentiles contains synthetic values of a metric at a given statistical percentile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricTimeseries
constructor
A new instance of MetricTimeseries.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetricTimeseries
Returns a new instance of MetricTimeseries.
350 351 352 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 350 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fraction_timeseries ⇒ Hash<String,Google::Apis::ChromeuxreportV1::FractionTimeseries>
Mapping from labels to timeseries of fractions attributed to this label.
Corresponds to the JSON property fractionTimeseries
334 335 336 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 334 def fraction_timeseries @fraction_timeseries end |
#histogram_timeseries ⇒ Array<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
341 342 343 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 341 def histogram_timeseries @histogram_timeseries end |
#percentiles_timeseries ⇒ Google::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
348 349 350 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 348 def percentiles_timeseries @percentiles_timeseries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
355 356 357 358 359 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 355 def update!(**args) @fraction_timeseries = args[:fraction_timeseries] if args.key?(:fraction_timeseries) @histogram_timeseries = args[:histogram_timeseries] if args.key?(:histogram_timeseries) @percentiles_timeseries = args[:percentiles_timeseries] if args.key?(:percentiles_timeseries) end |