google-analytics-data-v1beta 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92cac32d4409a7bd6cc432476cebc95e4c489b15b582c4dfe0982c1d5fade41f
4
- data.tar.gz: e3a5dff97864eea55e0b6f9f657e9a7120befe5a8d900580a4497b8ea428ed81
3
+ metadata.gz: c021234dd6f81ba0f39dbbb777517e6fab6c15dea6311094c80dd8447aa0531e
4
+ data.tar.gz: db84e46a4f4f7685a998f618ec3111b21b5acf247718485807cbe024c2e2e82d
5
5
  SHA512:
6
- metadata.gz: 32339ae1e1b113282a98067656843d05dea03578a19bec145927f4ac26f73701885f974501275922e80d7efbe981df8d9a63c1bdefb20d071c398abcef9bd3f1
7
- data.tar.gz: 47c3c8189703d95b46a6e25537d7a1613c9c81be30726a58a3f4efad6c236c3e9613c105cfe7757095312a6778f6454cbecff0618de7209429f07d8cd8fefad6
6
+ metadata.gz: d1d8d6dbabc2913006e761cc2901de043317fafe472bb5feb8e8f9be540fa597fabebc33fc66045baf354ae8a414d53a01f0cd20a1f3f67323d1e1a7e04b53bc
7
+ data.tar.gz: 2ccdcf5ff209db69140d5e7726f9beb2df795003ee8142430bbc5d571f6c68cef93c91133851b240e50209a965fa36069a0164529bb6fb555eac8e126c73c193
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-analytics-data-v1beta
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Analytics::Data::V1beta::AnalyticsData::Credentials}):
68
68
 
69
- 1. `ANALYTICS_DATA_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `ANALYTICS_DATA_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `ANALYTICS_DATA_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `ANALYTICS_DATA_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/analytics/data/v1beta"
@@ -82,8 +82,8 @@ client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/analytics/data/v1beta"
@@ -93,7 +93,7 @@ client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new do |config
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/analytics/data/v1beta"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/analytics/data/v1beta"
34
34
 
35
35
  client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new
36
- request = my_create_request
36
+ request = ::Google::Analytics::Data::V1beta::RunReportRequest.new # (request fields as keyword arguments...)
37
37
  response = client.run_report request
38
38
  ```
39
39
 
@@ -67,10 +67,7 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 1.0,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [2]
70
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [2]
74
71
  }
75
72
 
76
73
  default_config.rpcs.run_report.timeout = 60.0
@@ -151,7 +148,7 @@ module Google
151
148
  !@config.endpoint.split(".").first.include?("-")
152
149
  credentials ||= Credentials.default scope: @config.scope,
153
150
  enable_self_signed_jwt: enable_self_signed_jwt
154
- if credentials.is_a?(String) || credentials.is_a?(Hash)
151
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
155
152
  credentials = Credentials.new credentials, scope: @config.scope
156
153
  end
157
154
  @quota_project_id = @config.quota_project
@@ -676,7 +673,7 @@ module Google
676
673
  # @param options [::Gapic::CallOptions, ::Hash]
677
674
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
678
675
  #
679
- # @overload run_realtime_report(property: nil, dimensions: nil, metrics: nil, dimension_filter: nil, metric_filter: nil, limit: nil, metric_aggregations: nil, order_bys: nil, return_property_quota: nil)
676
+ # @overload run_realtime_report(property: nil, dimensions: nil, metrics: nil, dimension_filter: nil, metric_filter: nil, limit: nil, metric_aggregations: nil, order_bys: nil, return_property_quota: nil, minute_ranges: nil)
680
677
  # Pass arguments to `run_realtime_report` via keyword arguments. Note that at
681
678
  # least one keyword argument is required. To specify no parameters, or to keep all
682
679
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -717,6 +714,12 @@ module Google
717
714
  # @param return_property_quota [::Boolean]
718
715
  # Toggles whether to return the current state of this Analytics Property's
719
716
  # Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
717
+ # @param minute_ranges [::Array<::Google::Analytics::Data::V1beta::MinuteRange, ::Hash>]
718
+ # The minute ranges of event data to read. If unspecified, one minute range
719
+ # for the last 30 minutes will be used. If multiple minute ranges are
720
+ # requested, each response row will contain a zero based minute range index.
721
+ # If two minute ranges overlap, the event data for the overlapping minutes is
722
+ # included in the response rows for both minute ranges.
720
723
  #
721
724
  # @yield [response, operation] Access the result along with the RPC operation
722
725
  # @yieldparam response [::Google::Analytics::Data::V1beta::RunRealtimeReportResponse]
@@ -95,6 +95,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
95
95
  repeated :metric_aggregations, :enum, 7, "google.analytics.data.v1beta.MetricAggregation"
96
96
  repeated :order_bys, :message, 8, "google.analytics.data.v1beta.OrderBy"
97
97
  optional :return_property_quota, :bool, 9
98
+ repeated :minute_ranges, :message, 10, "google.analytics.data.v1beta.MinuteRange"
98
99
  end
99
100
  add_message "google.analytics.data.v1beta.RunRealtimeReportResponse" do
100
101
  repeated :dimension_headers, :message, 1, "google.analytics.data.v1beta.DimensionHeader"
@@ -10,6 +10,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  optional :end_date, :string, 2
11
11
  optional :name, :string, 3
12
12
  end
13
+ add_message "google.analytics.data.v1beta.MinuteRange" do
14
+ proto3_optional :start_minutes_ago, :int32, 1
15
+ proto3_optional :end_minutes_ago, :int32, 2
16
+ optional :name, :string, 3
17
+ end
13
18
  add_message "google.analytics.data.v1beta.Dimension" do
14
19
  optional :name, :string, 1
15
20
  optional :dimension_expression, :message, 2, "google.analytics.data.v1beta.DimensionExpression"
@@ -241,6 +246,7 @@ module Google
241
246
  module Data
242
247
  module V1beta
243
248
  DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DateRange").msgclass
249
+ MinuteRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MinuteRange").msgclass
244
250
  Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Dimension").msgclass
245
251
  DimensionExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionExpression").msgclass
246
252
  DimensionExpression::CaseExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionExpression.CaseExpression").msgclass
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -441,6 +441,13 @@ module Google
441
441
  # @return [::Boolean]
442
442
  # Toggles whether to return the current state of this Analytics Property's
443
443
  # Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
444
+ # @!attribute [rw] minute_ranges
445
+ # @return [::Array<::Google::Analytics::Data::V1beta::MinuteRange>]
446
+ # The minute ranges of event data to read. If unspecified, one minute range
447
+ # for the last 30 minutes will be used. If multiple minute ranges are
448
+ # requested, each response row will contain a zero based minute range index.
449
+ # If two minute ranges overlap, the event data for the overlapping minutes is
450
+ # included in the response rows for both minute ranges.
444
451
  class RunRealtimeReportRequest
445
452
  include ::Google::Protobuf::MessageExts
446
453
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -46,10 +46,44 @@ module Google
46
46
  extend ::Google::Protobuf::MessageExts::ClassMethods
47
47
  end
48
48
 
49
+ # A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ...,
50
+ # endMinutesAgo. Requests are allowed up to 2 minute ranges.
51
+ # @!attribute [rw] start_minutes_ago
52
+ # @return [::Integer]
53
+ # The inclusive start minute for the query as a number of minutes before now.
54
+ # For example, `"startMinutesAgo": 29` specifies the report should include
55
+ # event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
56
+ #
57
+ # If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
58
+ # properties can request up to the last 30 minutes of event data
59
+ # (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
60
+ # the last 60 minutes of event data (`startMinutesAgo <= 59`).
61
+ # @!attribute [rw] end_minutes_ago
62
+ # @return [::Integer]
63
+ # The inclusive end minute for the query as a number of minutes before now.
64
+ # Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
65
+ # specifies the report should include event data from prior to 15 minutes
66
+ # ago.
67
+ #
68
+ # If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
69
+ # properties can request any minute in the last 30 minutes of event data
70
+ # (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
71
+ # minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
72
+ # @!attribute [rw] name
73
+ # @return [::String]
74
+ # Assigns a name to this minute range. The dimension `dateRange` is valued to
75
+ # this name in a report response. If set, cannot begin with `date_range_` or
76
+ # `RESERVED_`. If not set, minute ranges are named by their zero based index
77
+ # in the request: `date_range_0`, `date_range_1`, etc.
78
+ class MinuteRange
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
49
83
  # Dimensions are attributes of your data. For example, the dimension city
50
84
  # indicates the city from which an event originates. Dimension values in report
51
85
  # responses are strings; for example, city could be "Paris" or "New York".
52
- # Requests are allowed up to 8 dimensions.
86
+ # Requests are allowed up to 9 dimensions.
53
87
  # @!attribute [rw] name
54
88
  # @return [::String]
55
89
  # The name of the dimension. See the [API
@@ -60,6 +60,12 @@ module Google
60
60
  # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-data-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common