Class: Google::Apis::ChromeuxreportV1::QueryResponse

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

Response payload sent back to a physical web client. This response contains the record found based on the identiers present in a QueryRequest. The returned response will have a record, and sometimes details on normalization actions taken on the request that were necessary to make the request successful.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryResponse

Returns a new instance of QueryResponse.



541
542
543
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 541

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

Instance Attribute Details

#recordGoogle::Apis::ChromeuxreportV1::Record

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



531
532
533
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 531

def record
  @record
end

#url_normalization_detailsGoogle::Apis::ChromeuxreportV1::UrlNormalization

Object representing the normalization actions taken to normalize a url to achieve a higher chance of successful lookup. These are simple automated changes that are taken when looking up the provided url_patten would be known to fail. Complex actions like following redirects are not handled. Corresponds to the JSON property urlNormalizationDetails



539
540
541
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 539

def url_normalization_details
  @url_normalization_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



546
547
548
549
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 546

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