Class: Google::Apis::ChromeuxreportV1::HistoryKey
- Inherits:
-
Object
- Object
- Google::Apis::ChromeuxreportV1::HistoryKey
- 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
Key defines all the dimensions that identify this record as unique.
Instance Attribute Summary collapse
-
#form_factor ⇒ String
The form factor is the device class that all users used to access the site for this record.
-
#origin ⇒ String
Origin specifies the origin that this record is for.
-
#url ⇒ String
Url specifies a specific url that this record is for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HistoryKey
constructor
A new instance of HistoryKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HistoryKey
Returns a new instance of HistoryKey.
170 171 172 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#form_factor ⇒ String
The form factor is the device class that all users used to access the site for
this record. If the form factor is unspecified, then aggregated data over all
form factors will be returned.
Corresponds to the JSON property formFactor
153 154 155 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 153 def form_factor @form_factor end |
#origin ⇒ String
Origin specifies the origin that this record is for. Note: When specifying an
origin, data for loads under this origin over all pages are aggregated into
origin level user experience data.
Corresponds to the JSON property origin
160 161 162 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 160 def origin @origin end |
#url ⇒ String
Url specifies a specific url that this record is for. This url should be
normalized, following the normalization actions taken in the request to
increase the chances of successful lookup. Note: When specifying a "url" only
data for that specific url will be aggregated.
Corresponds to the JSON property url
168 169 170 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 168 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
175 176 177 178 179 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 175 def update!(**args) @form_factor = args[:form_factor] if args.key?(:form_factor) @origin = args[:origin] if args.key?(:origin) @url = args[:url] if args.key?(:url) end |