google-analytics-data-v1alpha 0.3.1 → 0.4.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/lib/google/analytics/data/v1alpha/analytics_data/client.rb +102 -0
- data/lib/google/analytics/data/v1alpha/analytics_data_api_pb.rb +23 -0
- data/lib/google/analytics/data/v1alpha/analytics_data_api_services_pb.rb +4 -0
- data/lib/google/analytics/data/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/data/v1alpha/analytics_data_api.rb +80 -1
- data/proto_docs/google/analytics/data/v1alpha/data.rb +76 -37
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e855e82e44e32830f8170a32d2675893ff52d9417bd318dd4984eb3a2129784
|
4
|
+
data.tar.gz: 183e42b1ca3b3128e6aac9b7956f7f1021bf5c76ae66008877e83b3ab2b21501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b6a4a2b53daa127d558dbe8ff7c2f182a418e92bedb9ac028d2a52a76b674ae5c91004237c9485a937871e65100b5401709f9320db2ed28c2bb91b7be9eada
|
7
|
+
data.tar.gz: e477689c2bf4e53211f46c26497ecda51112f17265593a035ffcdb97bd5c5c0637742b30e21d8eedb2ea637a89a04952bf4ec9aa47d242ab73d94d6dc2d66dcb
|
@@ -638,6 +638,101 @@ module Google
|
|
638
638
|
raise ::Google::Cloud::Error.from_error(e)
|
639
639
|
end
|
640
640
|
|
641
|
+
##
|
642
|
+
# The Google Analytics Realtime API returns a customized report of realtime
|
643
|
+
# event data for your property. These reports show events and usage from the
|
644
|
+
# last 30 minutes.
|
645
|
+
#
|
646
|
+
# @overload run_realtime_report(request, options = nil)
|
647
|
+
# Pass arguments to `run_realtime_report` via a request object, either of type
|
648
|
+
# {::Google::Analytics::Data::V1alpha::RunRealtimeReportRequest} or an equivalent Hash.
|
649
|
+
#
|
650
|
+
# @param request [::Google::Analytics::Data::V1alpha::RunRealtimeReportRequest, ::Hash]
|
651
|
+
# A request object representing the call parameters. Required. To specify no
|
652
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
653
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
654
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
655
|
+
#
|
656
|
+
# @overload run_realtime_report(property: nil, dimensions: nil, metrics: nil, limit: nil, dimension_filter: nil, metric_filter: nil, metric_aggregations: nil, order_bys: nil, return_property_quota: nil)
|
657
|
+
# Pass arguments to `run_realtime_report` via keyword arguments. Note that at
|
658
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
659
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
660
|
+
#
|
661
|
+
# @param property [::String]
|
662
|
+
# A Google Analytics GA4 property identifier whose events are tracked.
|
663
|
+
# Specified in the URL path and not the body. To learn more, see [where to
|
664
|
+
# find your Property
|
665
|
+
# ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
|
666
|
+
#
|
667
|
+
# Example: properties/1234
|
668
|
+
# @param dimensions [::Array<::Google::Analytics::Data::V1alpha::Dimension, ::Hash>]
|
669
|
+
# The dimensions requested and displayed.
|
670
|
+
# @param metrics [::Array<::Google::Analytics::Data::V1alpha::Metric, ::Hash>]
|
671
|
+
# The metrics requested and displayed.
|
672
|
+
# @param limit [::Integer]
|
673
|
+
# The number of rows to return. If unspecified, 10 rows are returned. If
|
674
|
+
# -1, all rows are returned.
|
675
|
+
# @param dimension_filter [::Google::Analytics::Data::V1alpha::FilterExpression, ::Hash]
|
676
|
+
# The filter clause of dimensions. Dimensions must be requested to be used in
|
677
|
+
# this filter. Metrics cannot be used in this filter.
|
678
|
+
# @param metric_filter [::Google::Analytics::Data::V1alpha::FilterExpression, ::Hash]
|
679
|
+
# The filter clause of metrics. Applied at post aggregation phase, similar to
|
680
|
+
# SQL having-clause. Metrics must be requested to be used in this filter.
|
681
|
+
# Dimensions cannot be used in this filter.
|
682
|
+
# @param metric_aggregations [::Array<::Google::Analytics::Data::V1alpha::MetricAggregation>]
|
683
|
+
# Aggregation of metrics. Aggregated metric values will be shown in rows
|
684
|
+
# where the dimension_values are set to "RESERVED_(MetricAggregation)".
|
685
|
+
# @param order_bys [::Array<::Google::Analytics::Data::V1alpha::OrderBy, ::Hash>]
|
686
|
+
# Specifies how rows are ordered in the response.
|
687
|
+
# @param return_property_quota [::Boolean]
|
688
|
+
# Toggles whether to return the current state of this Analytics Property's
|
689
|
+
# Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
690
|
+
#
|
691
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
692
|
+
# @yieldparam response [::Google::Analytics::Data::V1alpha::RunRealtimeReportResponse]
|
693
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
694
|
+
#
|
695
|
+
# @return [::Google::Analytics::Data::V1alpha::RunRealtimeReportResponse]
|
696
|
+
#
|
697
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
698
|
+
#
|
699
|
+
def run_realtime_report request, options = nil
|
700
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
701
|
+
|
702
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Data::V1alpha::RunRealtimeReportRequest
|
703
|
+
|
704
|
+
# Converts hash and nil to an options object
|
705
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
706
|
+
|
707
|
+
# Customize the options with defaults
|
708
|
+
metadata = @config.rpcs.run_realtime_report.metadata.to_h
|
709
|
+
|
710
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
711
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
712
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
713
|
+
gapic_version: ::Google::Analytics::Data::V1alpha::VERSION
|
714
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
715
|
+
|
716
|
+
header_params = {
|
717
|
+
"property" => request.property
|
718
|
+
}
|
719
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
720
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
721
|
+
|
722
|
+
options.apply_defaults timeout: @config.rpcs.run_realtime_report.timeout,
|
723
|
+
metadata: metadata,
|
724
|
+
retry_policy: @config.rpcs.run_realtime_report.retry_policy
|
725
|
+
options.apply_defaults metadata: @config.metadata,
|
726
|
+
retry_policy: @config.retry_policy
|
727
|
+
|
728
|
+
@analytics_data_stub.call_rpc :run_realtime_report, request, options: options do |response, operation|
|
729
|
+
yield response, operation if block_given?
|
730
|
+
return response
|
731
|
+
end
|
732
|
+
rescue ::GRPC::BadStatus => e
|
733
|
+
raise ::Google::Cloud::Error.from_error(e)
|
734
|
+
end
|
735
|
+
|
641
736
|
##
|
642
737
|
# Configuration class for the AnalyticsData API.
|
643
738
|
#
|
@@ -804,6 +899,11 @@ module Google
|
|
804
899
|
# @return [::Gapic::Config::Method]
|
805
900
|
#
|
806
901
|
attr_reader :get_metadata
|
902
|
+
##
|
903
|
+
# RPC-specific configuration for `run_realtime_report`
|
904
|
+
# @return [::Gapic::Config::Method]
|
905
|
+
#
|
906
|
+
attr_reader :run_realtime_report
|
807
907
|
|
808
908
|
# @private
|
809
909
|
def initialize parent_rpcs = nil
|
@@ -819,6 +919,8 @@ module Google
|
|
819
919
|
@get_universal_metadata = ::Gapic::Config::Method.new get_universal_metadata_config
|
820
920
|
get_metadata_config = parent_rpcs&.get_metadata if parent_rpcs&.respond_to? :get_metadata
|
821
921
|
@get_metadata = ::Gapic::Config::Method.new get_metadata_config
|
922
|
+
run_realtime_report_config = parent_rpcs&.run_realtime_report if parent_rpcs&.respond_to? :run_realtime_report
|
923
|
+
@run_realtime_report = ::Gapic::Config::Method.new run_realtime_report_config
|
822
924
|
|
823
925
|
yield self if block_given?
|
824
926
|
end
|
@@ -87,6 +87,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
87
87
|
add_message "google.analytics.data.v1alpha.GetMetadataRequest" do
|
88
88
|
optional :name, :string, 1
|
89
89
|
end
|
90
|
+
add_message "google.analytics.data.v1alpha.RunRealtimeReportRequest" do
|
91
|
+
optional :property, :string, 1
|
92
|
+
repeated :dimensions, :message, 2, "google.analytics.data.v1alpha.Dimension"
|
93
|
+
repeated :metrics, :message, 3, "google.analytics.data.v1alpha.Metric"
|
94
|
+
optional :limit, :int64, 4
|
95
|
+
optional :dimension_filter, :message, 5, "google.analytics.data.v1alpha.FilterExpression"
|
96
|
+
optional :metric_filter, :message, 6, "google.analytics.data.v1alpha.FilterExpression"
|
97
|
+
repeated :metric_aggregations, :enum, 7, "google.analytics.data.v1alpha.MetricAggregation"
|
98
|
+
repeated :order_bys, :message, 8, "google.analytics.data.v1alpha.OrderBy"
|
99
|
+
optional :return_property_quota, :bool, 9
|
100
|
+
end
|
101
|
+
add_message "google.analytics.data.v1alpha.RunRealtimeReportResponse" do
|
102
|
+
repeated :dimension_headers, :message, 1, "google.analytics.data.v1alpha.DimensionHeader"
|
103
|
+
repeated :metric_headers, :message, 2, "google.analytics.data.v1alpha.MetricHeader"
|
104
|
+
repeated :rows, :message, 3, "google.analytics.data.v1alpha.Row"
|
105
|
+
repeated :totals, :message, 4, "google.analytics.data.v1alpha.Row"
|
106
|
+
repeated :maximums, :message, 5, "google.analytics.data.v1alpha.Row"
|
107
|
+
repeated :minimums, :message, 6, "google.analytics.data.v1alpha.Row"
|
108
|
+
optional :row_count, :int32, 7
|
109
|
+
optional :property_quota, :message, 8, "google.analytics.data.v1alpha.PropertyQuota"
|
110
|
+
end
|
90
111
|
end
|
91
112
|
end
|
92
113
|
|
@@ -106,6 +127,8 @@ module Google
|
|
106
127
|
GetUniversalMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.GetUniversalMetadataRequest").msgclass
|
107
128
|
UniversalMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.UniversalMetadata").msgclass
|
108
129
|
GetMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.GetMetadataRequest").msgclass
|
130
|
+
RunRealtimeReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunRealtimeReportRequest").msgclass
|
131
|
+
RunRealtimeReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunRealtimeReportResponse").msgclass
|
109
132
|
end
|
110
133
|
end
|
111
134
|
end
|
@@ -71,6 +71,10 @@ module Google
|
|
71
71
|
# `customEvent:levels_unlocked`. Universal metadata are dimensions and
|
72
72
|
# metrics applicable to any property such as `country` and `totalUsers`.
|
73
73
|
rpc :GetMetadata, ::Google::Analytics::Data::V1alpha::GetMetadataRequest, ::Google::Analytics::Data::V1alpha::Metadata
|
74
|
+
# The Google Analytics Realtime API returns a customized report of realtime
|
75
|
+
# event data for your property. These reports show events and usage from the
|
76
|
+
# last 30 minutes.
|
77
|
+
rpc :RunRealtimeReport, ::Google::Analytics::Data::V1alpha::RunRealtimeReportRequest, ::Google::Analytics::Data::V1alpha::RunRealtimeReportResponse
|
74
78
|
end
|
75
79
|
|
76
80
|
Stub = Service.rpc_stub_class
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Resource name of this metadata.
|
28
28
|
# @!attribute [rw] dimensions
|
29
29
|
# @return [::Array<::Google::Analytics::Data::V1alpha::DimensionMetadata>]
|
30
|
-
# The
|
30
|
+
# The dimension descriptions.
|
31
31
|
# @!attribute [rw] metrics
|
32
32
|
# @return [::Array<::Google::Analytics::Data::V1alpha::MetricMetadata>]
|
33
33
|
# The metric descriptions.
|
@@ -340,6 +340,85 @@ module Google
|
|
340
340
|
include ::Google::Protobuf::MessageExts
|
341
341
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
342
342
|
end
|
343
|
+
|
344
|
+
# The request to generate a realtime report.
|
345
|
+
# @!attribute [rw] property
|
346
|
+
# @return [::String]
|
347
|
+
# A Google Analytics GA4 property identifier whose events are tracked.
|
348
|
+
# Specified in the URL path and not the body. To learn more, see [where to
|
349
|
+
# find your Property
|
350
|
+
# ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
|
351
|
+
#
|
352
|
+
# Example: properties/1234
|
353
|
+
# @!attribute [rw] dimensions
|
354
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::Dimension>]
|
355
|
+
# The dimensions requested and displayed.
|
356
|
+
# @!attribute [rw] metrics
|
357
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::Metric>]
|
358
|
+
# The metrics requested and displayed.
|
359
|
+
# @!attribute [rw] limit
|
360
|
+
# @return [::Integer]
|
361
|
+
# The number of rows to return. If unspecified, 10 rows are returned. If
|
362
|
+
# -1, all rows are returned.
|
363
|
+
# @!attribute [rw] dimension_filter
|
364
|
+
# @return [::Google::Analytics::Data::V1alpha::FilterExpression]
|
365
|
+
# The filter clause of dimensions. Dimensions must be requested to be used in
|
366
|
+
# this filter. Metrics cannot be used in this filter.
|
367
|
+
# @!attribute [rw] metric_filter
|
368
|
+
# @return [::Google::Analytics::Data::V1alpha::FilterExpression]
|
369
|
+
# The filter clause of metrics. Applied at post aggregation phase, similar to
|
370
|
+
# SQL having-clause. Metrics must be requested to be used in this filter.
|
371
|
+
# Dimensions cannot be used in this filter.
|
372
|
+
# @!attribute [rw] metric_aggregations
|
373
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::MetricAggregation>]
|
374
|
+
# Aggregation of metrics. Aggregated metric values will be shown in rows
|
375
|
+
# where the dimension_values are set to "RESERVED_(MetricAggregation)".
|
376
|
+
# @!attribute [rw] order_bys
|
377
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::OrderBy>]
|
378
|
+
# Specifies how rows are ordered in the response.
|
379
|
+
# @!attribute [rw] return_property_quota
|
380
|
+
# @return [::Boolean]
|
381
|
+
# Toggles whether to return the current state of this Analytics Property's
|
382
|
+
# Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
383
|
+
class RunRealtimeReportRequest
|
384
|
+
include ::Google::Protobuf::MessageExts
|
385
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
386
|
+
end
|
387
|
+
|
388
|
+
# The response realtime report table corresponding to a request.
|
389
|
+
# @!attribute [rw] dimension_headers
|
390
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::DimensionHeader>]
|
391
|
+
# Describes dimension columns. The number of DimensionHeaders and ordering of
|
392
|
+
# DimensionHeaders matches the dimensions present in rows.
|
393
|
+
# @!attribute [rw] metric_headers
|
394
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::MetricHeader>]
|
395
|
+
# Describes metric columns. The number of MetricHeaders and ordering of
|
396
|
+
# MetricHeaders matches the metrics present in rows.
|
397
|
+
# @!attribute [rw] rows
|
398
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::Row>]
|
399
|
+
# Rows of dimension value combinations and metric values in the report.
|
400
|
+
# @!attribute [rw] totals
|
401
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::Row>]
|
402
|
+
# If requested, the totaled values of metrics.
|
403
|
+
# @!attribute [rw] maximums
|
404
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::Row>]
|
405
|
+
# If requested, the maximum values of metrics.
|
406
|
+
# @!attribute [rw] minimums
|
407
|
+
# @return [::Array<::Google::Analytics::Data::V1alpha::Row>]
|
408
|
+
# If requested, the minimum values of metrics.
|
409
|
+
# @!attribute [rw] row_count
|
410
|
+
# @return [::Integer]
|
411
|
+
# The total number of rows in the query result, regardless of the number of
|
412
|
+
# rows returned in the response. For example if a query returns 175 rows and
|
413
|
+
# includes limit = 50 in the API request, the response will contain row_count
|
414
|
+
# = 175 but only 50 rows.
|
415
|
+
# @!attribute [rw] property_quota
|
416
|
+
# @return [::Google::Analytics::Data::V1alpha::PropertyQuota]
|
417
|
+
# This Analytics Property's Realtime quota state including this request.
|
418
|
+
class RunRealtimeReportResponse
|
419
|
+
include ::Google::Protobuf::MessageExts
|
420
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
421
|
+
end
|
343
422
|
end
|
344
423
|
end
|
345
424
|
end
|
@@ -50,18 +50,30 @@ module Google
|
|
50
50
|
# The unique identifier of the property whose events are tracked.
|
51
51
|
# @!attribute [rw] property_id
|
52
52
|
# @return [::String]
|
53
|
-
# A Google Analytics
|
53
|
+
# A Google Analytics GA4 property id. To learn more, see [where to find your
|
54
|
+
# Property
|
55
|
+
# ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
|
54
56
|
class Entity
|
55
57
|
include ::Google::Protobuf::MessageExts
|
56
58
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
59
|
end
|
58
60
|
|
59
|
-
# Dimensions are attributes of your data. For example, the dimension
|
60
|
-
# indicates the city
|
61
|
-
#
|
61
|
+
# Dimensions are attributes of your data. For example, the dimension city
|
62
|
+
# indicates the city from which an event originates. Dimension values in report
|
63
|
+
# responses are strings; for example, city could be "Paris" or "New York".
|
64
|
+
# Requests are allowed up to 8 dimensions.
|
62
65
|
# @!attribute [rw] name
|
63
66
|
# @return [::String]
|
64
|
-
# The name of the dimension.
|
67
|
+
# The name of the dimension. See the [API
|
68
|
+
# Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions)
|
69
|
+
# for the list of dimension names.
|
70
|
+
#
|
71
|
+
# If `dimensionExpression` is specified, `name` can be any string that you
|
72
|
+
# would like. For example if a `dimensionExpression` concatenates `country`
|
73
|
+
# and `city`, you could call that dimension `countryAndCity`.
|
74
|
+
#
|
75
|
+
# Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
|
76
|
+
# `dimensionExpression`, and `pivots`.
|
65
77
|
# @!attribute [rw] dimension_expression
|
66
78
|
# @return [::Google::Analytics::Data::V1alpha::DimensionExpression]
|
67
79
|
# One dimension can be the result of an expression of multiple dimensions.
|
@@ -119,20 +131,30 @@ module Google
|
|
119
131
|
end
|
120
132
|
end
|
121
133
|
|
122
|
-
# The quantitative measurements of a report. For example, the metric
|
123
|
-
# is the total number of events. Requests are allowed up to 10
|
134
|
+
# The quantitative measurements of a report. For example, the metric
|
135
|
+
# `eventCount` is the total number of events. Requests are allowed up to 10
|
136
|
+
# metrics.
|
124
137
|
# @!attribute [rw] name
|
125
138
|
# @return [::String]
|
126
|
-
# The name of the metric.
|
139
|
+
# The name of the metric. See the [API
|
140
|
+
# Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics)
|
141
|
+
# for the list of metric names.
|
142
|
+
#
|
143
|
+
# If `expression` is specified, `name` can be any string that you would like.
|
144
|
+
# For example if `expression` is `screenPageViews/sessions`, you could call
|
145
|
+
# that metric's name = `viewsPerSession`.
|
146
|
+
#
|
147
|
+
# Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
|
148
|
+
# `expression`.
|
127
149
|
# @!attribute [rw] expression
|
128
150
|
# @return [::String]
|
129
151
|
# A mathematical expression for derived metrics. For example, the metric
|
130
|
-
# Event count per user is eventCount/totalUsers
|
152
|
+
# Event count per user is `eventCount/totalUsers`.
|
131
153
|
# @!attribute [rw] invisible
|
132
154
|
# @return [::Boolean]
|
133
|
-
# Indicates if a metric is invisible.
|
134
|
-
#
|
135
|
-
# used in
|
155
|
+
# Indicates if a metric is invisible in the report response. If a metric is
|
156
|
+
# invisible, the metric will not produce a column in the response, but can be
|
157
|
+
# used in `metricFilter`, `orderBys`, or a metric `expression`.
|
136
158
|
class Metric
|
137
159
|
include ::Google::Protobuf::MessageExts
|
138
160
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -176,7 +198,10 @@ module Google
|
|
176
198
|
# or metrics.
|
177
199
|
# @!attribute [rw] null_filter
|
178
200
|
# @return [::Boolean]
|
179
|
-
# A filter for null values.
|
201
|
+
# A filter for null values. If True, a null dimension value is matched by
|
202
|
+
# this filter. Null filter is commonly used inside a NOT filter
|
203
|
+
# expression. For example, a NOT expression of a null filter removes rows
|
204
|
+
# when a dimension is null.
|
180
205
|
# @!attribute [rw] string_filter
|
181
206
|
# @return [::Google::Analytics::Data::V1alpha::Filter::StringFilter]
|
182
207
|
# Strings related filter.
|
@@ -577,28 +602,38 @@ module Google
|
|
577
602
|
# For example if RunReportRequest contains:
|
578
603
|
#
|
579
604
|
# ```none
|
580
|
-
# dimensions
|
581
|
-
#
|
582
|
-
#
|
583
|
-
#
|
584
|
-
#
|
585
|
-
#
|
586
|
-
#
|
587
|
-
#
|
588
|
-
#
|
605
|
+
# "dimensions": [
|
606
|
+
# {
|
607
|
+
# "name": "eventName"
|
608
|
+
# },
|
609
|
+
# {
|
610
|
+
# "name": "countryId"
|
611
|
+
# }
|
612
|
+
# ],
|
613
|
+
# "metrics": [
|
614
|
+
# {
|
615
|
+
# "name": "eventCount"
|
616
|
+
# }
|
617
|
+
# ]
|
589
618
|
# ```
|
590
619
|
#
|
591
|
-
# One row with 'in_app_purchase' as the eventName, '
|
620
|
+
# One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and
|
592
621
|
# 15 as the eventCount, would be:
|
593
622
|
#
|
594
623
|
# ```none
|
595
|
-
#
|
596
|
-
#
|
597
|
-
#
|
598
|
-
#
|
599
|
-
#
|
600
|
-
#
|
601
|
-
#
|
624
|
+
# "dimensionValues": [
|
625
|
+
# {
|
626
|
+
# "value": "in_app_purchase"
|
627
|
+
# },
|
628
|
+
# {
|
629
|
+
# "value": "JP"
|
630
|
+
# }
|
631
|
+
# ],
|
632
|
+
# "metricValues": [
|
633
|
+
# {
|
634
|
+
# "value": "15"
|
635
|
+
# }
|
636
|
+
# ]
|
602
637
|
# ```
|
603
638
|
# @!attribute [rw] dimension_values
|
604
639
|
# @return [::Array<::Google::Analytics::Data::V1alpha::DimensionValue>]
|
@@ -647,20 +682,24 @@ module Google
|
|
647
682
|
# Exhausted errors.
|
648
683
|
# @!attribute [rw] tokens_per_day
|
649
684
|
# @return [::Google::Analytics::Data::V1alpha::QuotaStatus]
|
650
|
-
# Analytics Properties can use up to 25,000 tokens per day
|
685
|
+
# Standard Analytics Properties can use up to 25,000 tokens per day;
|
686
|
+
# Analytics 360 Properties can use 250,000 tokens per day. Most requests
|
651
687
|
# consume fewer than 10 tokens.
|
652
688
|
# @!attribute [rw] tokens_per_hour
|
653
689
|
# @return [::Google::Analytics::Data::V1alpha::QuotaStatus]
|
654
|
-
# Analytics Properties can use up to 5,000 tokens per day
|
655
|
-
#
|
656
|
-
#
|
690
|
+
# Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
|
691
|
+
# 360 Properties can use 50,000 tokens per day. An API request consumes a
|
692
|
+
# single number of tokens, and that number is deducted from both the hourly
|
693
|
+
# and daily quotas.
|
657
694
|
# @!attribute [rw] concurrent_requests
|
658
695
|
# @return [::Google::Analytics::Data::V1alpha::QuotaStatus]
|
659
|
-
# Analytics Properties can send up to 10 concurrent requests
|
696
|
+
# Standard Analytics Properties can send up to 10 concurrent requests;
|
697
|
+
# Analytics 360 Properties can use up to 50 concurrent requests.
|
660
698
|
# @!attribute [rw] server_errors_per_project_per_hour
|
661
699
|
# @return [::Google::Analytics::Data::V1alpha::QuotaStatus]
|
662
|
-
# Analytics Properties and cloud project pairs can have up to 10
|
663
|
-
# server errors per hour
|
700
|
+
# Standard Analytics Properties and cloud project pairs can have up to 10
|
701
|
+
# server errors per hour; Analytics 360 Properties and cloud project pairs
|
702
|
+
# can have up to 50 server errors per hour.
|
664
703
|
class PropertyQuota
|
665
704
|
include ::Google::Protobuf::MessageExts
|
666
705
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-analytics-data-v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2020-11-
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|