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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/chromeuxreport_v1/classes.rb,
generated/google/apis/chromeuxreport_v1/representations.rb,
generated/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.



267
268
269
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 267

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

Instance Attribute Details

#keyGoogle::Apis::ChromeuxreportV1::Key

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



257
258
259
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 257

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"] Corresponds to the JSON property metrics

Returns:



265
266
267
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 265

def metrics
  @metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



272
273
274
275
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 272

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