Class: Google::Apis::ChromeuxreportV1::Record

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

Record is a single Chrome UX report data record. It contains use experience statistics for a single url pattern and set of dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Record

Returns a new instance of Record.



577
578
579
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 577

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

Instance Attribute Details

#collection_periodGoogle::Apis::ChromeuxreportV1::CollectionPeriod

The collection period is a date range which includes the first and last day. Corresponds to the JSON property collectionPeriod



561
562
563
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 561

def collection_period
  @collection_period
end

#keyGoogle::Apis::ChromeuxreportV1::Key

Key defines all the dimensions that identify this record as unique. Corresponds to the JSON property key



566
567
568
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 566

def key
  @key
end

#metricsHash<String,Google::Apis::ChromeuxreportV1::Metric>

Metrics is the map of user experience data available for the record defined in the key field. Metrics are keyed on the metric name. Allowed key values: [" first_contentful_paint", "first_input_delay", "largest_contentful_paint", " cumulative_layout_shift", "experimental_time_to_first_byte", " experimental_interaction_to_next_paint"] Corresponds to the JSON property metrics

Returns:



575
576
577
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 575

def metrics
  @metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



582
583
584
585
586
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 582

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