google-apis-chromeuxreport_v1 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/chromeuxreport_v1/classes.rb +257 -1
- data/lib/google/apis/chromeuxreport_v1/gem_version.rb +3 -3
- data/lib/google/apis/chromeuxreport_v1/representations.rb +109 -0
- data/lib/google/apis/chromeuxreport_v1/service.rb +32 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64fff11ebf66b6e1c010e6840bb527a9e5f305c4109a81cf5045ee6faf03d764
|
4
|
+
data.tar.gz: 28183830081fa24e34229ada484397bc7fb03729bd8731875b5859d32a2a1033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7313c8872580873d15c68585bbcaac0fd485530783feac7a60425b862b7a152d8d1ffa828c1e18ed09a6d8def32088803d04128ad443fb4c833a9844c851aaae
|
7
|
+
data.tar.gz: 2e38a61c033d836b23c0fda17637ae30f767eaff86ae47a9b5a985fe6b64ad3197d84aee0a66b09bc7b5aff8e80a79b8b6917521f2f79051086f4ec884504e3c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-chromeuxreport_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2023-02-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230206
|
6
|
+
|
7
|
+
### v0.17.0 (2023-01-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230117
|
10
|
+
* Regenerated using generator version 0.11.1
|
11
|
+
|
3
12
|
### v0.16.0 (2022-10-30)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.11.0
|
@@ -141,6 +141,83 @@ module Google
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
+
# Key defines all the dimensions that identify this record as unique.
|
145
|
+
class HistoryKey
|
146
|
+
include Google::Apis::Core::Hashable
|
147
|
+
|
148
|
+
# The form factor is the device class that all users used to access the site for
|
149
|
+
# this record. If the form factor is unspecified, then aggregated data over all
|
150
|
+
# form factors will be returned.
|
151
|
+
# Corresponds to the JSON property `formFactor`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :form_factor
|
154
|
+
|
155
|
+
# Origin specifies the origin that this record is for. Note: When specifying an
|
156
|
+
# origin, data for loads under this origin over all pages are aggregated into
|
157
|
+
# origin level user experience data.
|
158
|
+
# Corresponds to the JSON property `origin`
|
159
|
+
# @return [String]
|
160
|
+
attr_accessor :origin
|
161
|
+
|
162
|
+
# Url specifies a specific url that this record is for. This url should be
|
163
|
+
# normalized, following the normalization actions taken in the request to
|
164
|
+
# increase the chances of successful lookup. Note: When specifying a "url" only
|
165
|
+
# data for that specific url will be aggregated.
|
166
|
+
# Corresponds to the JSON property `url`
|
167
|
+
# @return [String]
|
168
|
+
attr_accessor :url
|
169
|
+
|
170
|
+
def initialize(**args)
|
171
|
+
update!(**args)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Update properties of this object
|
175
|
+
def update!(**args)
|
176
|
+
@form_factor = args[:form_factor] if args.key?(:form_factor)
|
177
|
+
@origin = args[:origin] if args.key?(:origin)
|
178
|
+
@url = args[:url] if args.key?(:url)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# HistoryRecord is a timeseries of Chrome UX Report data. It contains user
|
183
|
+
# experience statistics for a single url pattern and a set of dimensions.
|
184
|
+
class HistoryRecord
|
185
|
+
include Google::Apis::Core::Hashable
|
186
|
+
|
187
|
+
# The collection periods indicate when each of the data points reflected in the
|
188
|
+
# time series data in metrics was collected. Note that all the time series share
|
189
|
+
# the same collection periods, and it is enforced in the CrUX pipeline that
|
190
|
+
# every time series has the same number of data points.
|
191
|
+
# Corresponds to the JSON property `collectionPeriods`
|
192
|
+
# @return [Array<Google::Apis::ChromeuxreportV1::CollectionPeriod>]
|
193
|
+
attr_accessor :collection_periods
|
194
|
+
|
195
|
+
# Key defines all the dimensions that identify this record as unique.
|
196
|
+
# Corresponds to the JSON property `key`
|
197
|
+
# @return [Google::Apis::ChromeuxreportV1::HistoryKey]
|
198
|
+
attr_accessor :key
|
199
|
+
|
200
|
+
# Metrics is the map of user experience time series data available for the
|
201
|
+
# record defined in the key field. Metrics are keyed on the metric name. Allowed
|
202
|
+
# key values: ["first_contentful_paint", "first_input_delay", "
|
203
|
+
# largest_contentful_paint", "cumulative_layout_shift", "
|
204
|
+
# experimental_time_to_first_byte", "experimental_interaction_to_next_paint"]
|
205
|
+
# Corresponds to the JSON property `metrics`
|
206
|
+
# @return [Hash<String,Google::Apis::ChromeuxreportV1::MetricTimeseries>]
|
207
|
+
attr_accessor :metrics
|
208
|
+
|
209
|
+
def initialize(**args)
|
210
|
+
update!(**args)
|
211
|
+
end
|
212
|
+
|
213
|
+
# Update properties of this object
|
214
|
+
def update!(**args)
|
215
|
+
@collection_periods = args[:collection_periods] if args.key?(:collection_periods)
|
216
|
+
@key = args[:key] if args.key?(:key)
|
217
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
144
221
|
# Key defines all the dimensions that identify this record as unique.
|
145
222
|
class Key
|
146
223
|
include Google::Apis::Core::Hashable
|
@@ -217,6 +294,38 @@ module Google
|
|
217
294
|
end
|
218
295
|
end
|
219
296
|
|
297
|
+
# A `metric timeseries` is a set of user experience data for a single web
|
298
|
+
# performance metric, like "first contentful paint". It contains a summary
|
299
|
+
# histogram of real world Chrome usage as a series of `bins`, where each bin has
|
300
|
+
# density values for a particular time period.
|
301
|
+
class MetricTimeseries
|
302
|
+
include Google::Apis::Core::Hashable
|
303
|
+
|
304
|
+
# The histogram of user experiences for a metric. The histogram will have at
|
305
|
+
# least one bin and the densities of all bins will add up to ~1, for each
|
306
|
+
# timeseries entry.
|
307
|
+
# Corresponds to the JSON property `histogramTimeseries`
|
308
|
+
# @return [Array<Google::Apis::ChromeuxreportV1::TimeseriesBin>]
|
309
|
+
attr_accessor :histogram_timeseries
|
310
|
+
|
311
|
+
# Percentiles contains synthetic values of a metric at a given statistical
|
312
|
+
# percentile. These are used for estimating a metric's value as experienced by a
|
313
|
+
# percentage of users out of the total number of users.
|
314
|
+
# Corresponds to the JSON property `percentilesTimeseries`
|
315
|
+
# @return [Google::Apis::ChromeuxreportV1::TimeseriesPercentiles]
|
316
|
+
attr_accessor :percentiles_timeseries
|
317
|
+
|
318
|
+
def initialize(**args)
|
319
|
+
update!(**args)
|
320
|
+
end
|
321
|
+
|
322
|
+
# Update properties of this object
|
323
|
+
def update!(**args)
|
324
|
+
@histogram_timeseries = args[:histogram_timeseries] if args.key?(:histogram_timeseries)
|
325
|
+
@percentiles_timeseries = args[:percentiles_timeseries] if args.key?(:percentiles_timeseries)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
220
329
|
# Percentiles contains synthetic values of a metric at a given statistical
|
221
330
|
# percentile. These are used for estimating a metric's value as experienced by a
|
222
331
|
# percentage of users out of the total number of users.
|
@@ -238,6 +347,85 @@ module Google
|
|
238
347
|
end
|
239
348
|
end
|
240
349
|
|
350
|
+
# Request payload sent by a physical web client. This request includes all
|
351
|
+
# necessary context to load a particular user experience history record.
|
352
|
+
class QueryHistoryRequest
|
353
|
+
include Google::Apis::Core::Hashable
|
354
|
+
|
355
|
+
# The form factor is a query dimension that specifies the device class that the
|
356
|
+
# record's data should belong to. Note: If no form factor is specified, then a
|
357
|
+
# special record with aggregated data over all form factors will be returned.
|
358
|
+
# Corresponds to the JSON property `formFactor`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :form_factor
|
361
|
+
|
362
|
+
# The metrics that should be included in the response. If none are specified
|
363
|
+
# then any metrics found will be returned. Allowed values: ["
|
364
|
+
# first_contentful_paint", "first_input_delay", "largest_contentful_paint", "
|
365
|
+
# cumulative_layout_shift", "experimental_time_to_first_byte", "
|
366
|
+
# experimental_interaction_to_next_paint"]
|
367
|
+
# Corresponds to the JSON property `metrics`
|
368
|
+
# @return [Array<String>]
|
369
|
+
attr_accessor :metrics
|
370
|
+
|
371
|
+
# The url pattern "origin" refers to a url pattern that is the origin of a
|
372
|
+
# website. Examples: "https://example.com", "https://cloud.google.com"
|
373
|
+
# Corresponds to the JSON property `origin`
|
374
|
+
# @return [String]
|
375
|
+
attr_accessor :origin
|
376
|
+
|
377
|
+
# The url pattern "url" refers to a url pattern that is any arbitrary url.
|
378
|
+
# Examples: "https://example.com/", "https://cloud.google.com/why-google-cloud/"
|
379
|
+
# Corresponds to the JSON property `url`
|
380
|
+
# @return [String]
|
381
|
+
attr_accessor :url
|
382
|
+
|
383
|
+
def initialize(**args)
|
384
|
+
update!(**args)
|
385
|
+
end
|
386
|
+
|
387
|
+
# Update properties of this object
|
388
|
+
def update!(**args)
|
389
|
+
@form_factor = args[:form_factor] if args.key?(:form_factor)
|
390
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
391
|
+
@origin = args[:origin] if args.key?(:origin)
|
392
|
+
@url = args[:url] if args.key?(:url)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
# Response payload sent back to a physical web client. This response contains
|
397
|
+
# the record found based on the identiers present in a `QueryHistoryRequest`.
|
398
|
+
# The returned response will have a history record, and sometimes details on
|
399
|
+
# normalization actions taken on the request that were necessary to make the
|
400
|
+
# request successful.
|
401
|
+
class QueryHistoryResponse
|
402
|
+
include Google::Apis::Core::Hashable
|
403
|
+
|
404
|
+
# HistoryRecord is a timeseries of Chrome UX Report data. It contains user
|
405
|
+
# experience statistics for a single url pattern and a set of dimensions.
|
406
|
+
# Corresponds to the JSON property `record`
|
407
|
+
# @return [Google::Apis::ChromeuxreportV1::HistoryRecord]
|
408
|
+
attr_accessor :record
|
409
|
+
|
410
|
+
# Object representing the normalization actions taken to normalize a url to
|
411
|
+
# achieve a higher chance of successful lookup. These are simple automated
|
412
|
+
# changes that are taken when looking up the provided `url_patten` would be
|
413
|
+
# known to fail. Complex actions like following redirects are not handled.
|
414
|
+
# Corresponds to the JSON property `urlNormalizationDetails`
|
415
|
+
# @return [Google::Apis::ChromeuxreportV1::UrlNormalization]
|
416
|
+
attr_accessor :url_normalization_details
|
417
|
+
|
418
|
+
def initialize(**args)
|
419
|
+
update!(**args)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Update properties of this object
|
423
|
+
def update!(**args)
|
424
|
+
@record = args[:record] if args.key?(:record)
|
425
|
+
@url_normalization_details = args[:url_normalization_details] if args.key?(:url_normalization_details)
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
241
429
|
# Request payload sent by a physical web client. This request includes all
|
242
430
|
# necessary context to load a particular user experience record.
|
243
431
|
class QueryRequest
|
@@ -347,7 +535,8 @@ module Google
|
|
347
535
|
# Metrics is the map of user experience data available for the record defined in
|
348
536
|
# the key field. Metrics are keyed on the metric name. Allowed key values: ["
|
349
537
|
# first_contentful_paint", "first_input_delay", "largest_contentful_paint", "
|
350
|
-
# cumulative_layout_shift"
|
538
|
+
# cumulative_layout_shift", "experimental_time_to_first_byte", "
|
539
|
+
# experimental_interaction_to_next_paint"]
|
351
540
|
# Corresponds to the JSON property `metrics`
|
352
541
|
# @return [Hash<String,Google::Apis::ChromeuxreportV1::Metric>]
|
353
542
|
attr_accessor :metrics
|
@@ -364,6 +553,73 @@ module Google
|
|
364
553
|
end
|
365
554
|
end
|
366
555
|
|
556
|
+
# A bin is a discrete portion of data spanning from start to end, or if no end
|
557
|
+
# is given, then from start to +inf. A bin's start and end values are given in
|
558
|
+
# the value type of the metric it represents. For example, "first contentful
|
559
|
+
# paint" is measured in milliseconds and exposed as ints, therefore its metric
|
560
|
+
# bins will use int32s for its start and end types. However, "cumulative layout
|
561
|
+
# shift" is measured in unitless decimals and is exposed as a decimal encoded as
|
562
|
+
# a string, therefore its metric bins will use strings for its value type.
|
563
|
+
class TimeseriesBin
|
564
|
+
include Google::Apis::Core::Hashable
|
565
|
+
|
566
|
+
# The proportion of users that experienced this bin's value for the given metric
|
567
|
+
# in a given collection period; the index for each of these entries corresponds
|
568
|
+
# to an entry in the CollectionPeriods field in the HistoryRecord message, which
|
569
|
+
# describes when the density was observed in the field. Thus, the length of this
|
570
|
+
# list of densities is equal to the length of the CollectionPeriods field in the
|
571
|
+
# HistoryRecord message.
|
572
|
+
# Corresponds to the JSON property `densities`
|
573
|
+
# @return [Array<Float>]
|
574
|
+
attr_accessor :densities
|
575
|
+
|
576
|
+
# End is the end of the data bin. If end is not populated, then the bin has no
|
577
|
+
# end and is valid from start to +inf.
|
578
|
+
# Corresponds to the JSON property `end`
|
579
|
+
# @return [Object]
|
580
|
+
attr_accessor :end
|
581
|
+
|
582
|
+
# Start is the beginning of the data bin.
|
583
|
+
# Corresponds to the JSON property `start`
|
584
|
+
# @return [Object]
|
585
|
+
attr_accessor :start
|
586
|
+
|
587
|
+
def initialize(**args)
|
588
|
+
update!(**args)
|
589
|
+
end
|
590
|
+
|
591
|
+
# Update properties of this object
|
592
|
+
def update!(**args)
|
593
|
+
@densities = args[:densities] if args.key?(:densities)
|
594
|
+
@end = args[:end] if args.key?(:end)
|
595
|
+
@start = args[:start] if args.key?(:start)
|
596
|
+
end
|
597
|
+
end
|
598
|
+
|
599
|
+
# Percentiles contains synthetic values of a metric at a given statistical
|
600
|
+
# percentile. These are used for estimating a metric's value as experienced by a
|
601
|
+
# percentage of users out of the total number of users.
|
602
|
+
class TimeseriesPercentiles
|
603
|
+
include Google::Apis::Core::Hashable
|
604
|
+
|
605
|
+
# 75% of users experienced the given metric at or below this value. The length
|
606
|
+
# of this list of densities is equal to the length of the CollectionPeriods
|
607
|
+
# field in the HistoryRecord message, which describes when the density was
|
608
|
+
# observed in the field.
|
609
|
+
# Corresponds to the JSON property `p75s`
|
610
|
+
# @return [Array<Object>]
|
611
|
+
attr_accessor :p75s
|
612
|
+
|
613
|
+
def initialize(**args)
|
614
|
+
update!(**args)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Update properties of this object
|
618
|
+
def update!(**args)
|
619
|
+
@p75s = args[:p75s] if args.key?(:p75s)
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
367
623
|
# Object representing the normalization actions taken to normalize a url to
|
368
624
|
# achieve a higher chance of successful lookup. These are simple automated
|
369
625
|
# changes that are taken when looking up the provided `url_patten` would be
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ChromeuxreportV1
|
18
18
|
# Version of the google-apis-chromeuxreport_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230206"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,18 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class HistoryKey
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class HistoryRecord
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
43
55
|
class Key
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
@@ -52,12 +64,30 @@ module Google
|
|
52
64
|
include Google::Apis::Core::JsonObjectSupport
|
53
65
|
end
|
54
66
|
|
67
|
+
class MetricTimeseries
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
55
73
|
class Percentiles
|
56
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
75
|
|
58
76
|
include Google::Apis::Core::JsonObjectSupport
|
59
77
|
end
|
60
78
|
|
79
|
+
class QueryHistoryRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class QueryHistoryResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
61
91
|
class QueryRequest
|
62
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
93
|
|
@@ -76,6 +106,18 @@ module Google
|
|
76
106
|
include Google::Apis::Core::JsonObjectSupport
|
77
107
|
end
|
78
108
|
|
109
|
+
class TimeseriesBin
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class TimeseriesPercentiles
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
79
121
|
class UrlNormalization
|
80
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
123
|
|
@@ -110,6 +152,27 @@ module Google
|
|
110
152
|
end
|
111
153
|
end
|
112
154
|
|
155
|
+
class HistoryKey
|
156
|
+
# @private
|
157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
158
|
+
property :form_factor, as: 'formFactor'
|
159
|
+
property :origin, as: 'origin'
|
160
|
+
property :url, as: 'url'
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
class HistoryRecord
|
165
|
+
# @private
|
166
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
167
|
+
collection :collection_periods, as: 'collectionPeriods', class: Google::Apis::ChromeuxreportV1::CollectionPeriod, decorator: Google::Apis::ChromeuxreportV1::CollectionPeriod::Representation
|
168
|
+
|
169
|
+
property :key, as: 'key', class: Google::Apis::ChromeuxreportV1::HistoryKey, decorator: Google::Apis::ChromeuxreportV1::HistoryKey::Representation
|
170
|
+
|
171
|
+
hash :metrics, as: 'metrics', class: Google::Apis::ChromeuxreportV1::MetricTimeseries, decorator: Google::Apis::ChromeuxreportV1::MetricTimeseries::Representation
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
113
176
|
class Key
|
114
177
|
# @private
|
115
178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -130,6 +193,16 @@ module Google
|
|
130
193
|
end
|
131
194
|
end
|
132
195
|
|
196
|
+
class MetricTimeseries
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
collection :histogram_timeseries, as: 'histogramTimeseries', class: Google::Apis::ChromeuxreportV1::TimeseriesBin, decorator: Google::Apis::ChromeuxreportV1::TimeseriesBin::Representation
|
200
|
+
|
201
|
+
property :percentiles_timeseries, as: 'percentilesTimeseries', class: Google::Apis::ChromeuxreportV1::TimeseriesPercentiles, decorator: Google::Apis::ChromeuxreportV1::TimeseriesPercentiles::Representation
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
133
206
|
class Percentiles
|
134
207
|
# @private
|
135
208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -137,6 +210,26 @@ module Google
|
|
137
210
|
end
|
138
211
|
end
|
139
212
|
|
213
|
+
class QueryHistoryRequest
|
214
|
+
# @private
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :form_factor, as: 'formFactor'
|
217
|
+
collection :metrics, as: 'metrics'
|
218
|
+
property :origin, as: 'origin'
|
219
|
+
property :url, as: 'url'
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
class QueryHistoryResponse
|
224
|
+
# @private
|
225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
+
property :record, as: 'record', class: Google::Apis::ChromeuxreportV1::HistoryRecord, decorator: Google::Apis::ChromeuxreportV1::HistoryRecord::Representation
|
227
|
+
|
228
|
+
property :url_normalization_details, as: 'urlNormalizationDetails', class: Google::Apis::ChromeuxreportV1::UrlNormalization, decorator: Google::Apis::ChromeuxreportV1::UrlNormalization::Representation
|
229
|
+
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
140
233
|
class QueryRequest
|
141
234
|
# @private
|
142
235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -170,6 +263,22 @@ module Google
|
|
170
263
|
end
|
171
264
|
end
|
172
265
|
|
266
|
+
class TimeseriesBin
|
267
|
+
# @private
|
268
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
+
collection :densities, as: 'densities'
|
270
|
+
property :end, as: 'end'
|
271
|
+
property :start, as: 'start'
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
class TimeseriesPercentiles
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
collection :p75s, as: 'p75s'
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
173
282
|
class UrlNormalization
|
174
283
|
# @private
|
175
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -50,6 +50,38 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
+
# Queries the Chrome User Experience Report for a timeseries `history record`
|
54
|
+
# for a given site. Returns a `history record` that contains one or more `metric
|
55
|
+
# timeseries` corresponding to performance data about the requested site.
|
56
|
+
# @param [Google::Apis::ChromeuxreportV1::QueryHistoryRequest] query_history_request_object
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::ChromeuxreportV1::QueryHistoryResponse] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::ChromeuxreportV1::QueryHistoryResponse]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def query_record_history_record(query_history_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'v1/records:queryHistoryRecord', options)
|
76
|
+
command.request_representation = Google::Apis::ChromeuxreportV1::QueryHistoryRequest::Representation
|
77
|
+
command.request_object = query_history_request_object
|
78
|
+
command.response_representation = Google::Apis::ChromeuxreportV1::QueryHistoryResponse::Representation
|
79
|
+
command.response_class = Google::Apis::ChromeuxreportV1::QueryHistoryResponse
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
+
execute_or_queue_command(command, &block)
|
83
|
+
end
|
84
|
+
|
53
85
|
# Queries the Chrome User Experience for a single `record` for a given site.
|
54
86
|
# Returns a `record` that contains one or more `metrics` corresponding to
|
55
87
|
# performance data about the requested site.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-chromeuxreport_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromeuxreport_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chromeuxreport_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chromeuxreport_v1/v0.18.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromeuxreport_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Chrome UX Report API V1
|