google-cloud-error_reporting 0.21.2 → 0.22.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
  SHA1:
3
- metadata.gz: 5d58bf7edce901f57f1e6e680d57347da8d83fa9
4
- data.tar.gz: 4556aac61b491671c8a50537cbaccac2e4899bcf
3
+ metadata.gz: f93ca0a20107de7406b4100003ef402539f8867a
4
+ data.tar.gz: 627b82ce4399a5c4b1b6d2e643d5f9752b4c3780
5
5
  SHA512:
6
- metadata.gz: 284712d8623c4f5ea02232c300a96636a3968db21f16b09493eb04b4a98d8002f288da50fc10543a51f43a34bb088e8234906e282e6dd607aa78f384b94c6c4d
7
- data.tar.gz: 452b7d6312fc5866d4c9b86491f49b17a393011b0131ec46ffa857a0ccb6ee8c6ece1661dae4f7433174fadfa38d14fb5b62c1a371a92823ac26c0361a93f398
6
+ metadata.gz: ee743297d9b2719da8d78abb30a6190709ca3e85e274d04a245d7ac65850de6b2c04f793d1c4f05aff5d3c57fd158e341838824ecdb9ccb39ef94e3e6b4c80d5
7
+ data.tar.gz: dbe964fac5a5429a2780266d6295d175343918f0fb68670af1c6de84595302321b30234f1fbc6130c8fee7aef0ddde5570a8dce301ee12920668e8e1d23c85a2
data/.yardopts CHANGED
@@ -1,5 +1,7 @@
1
1
  --no-private
2
2
  --title=Stackdriver Error Reporting
3
+ --exclude lib/google/devtools/clouderrorreporting/v1beta1
4
+ --markup markdown
3
5
 
4
6
  ./lib/**/*.rb
5
7
  -
data/README.md CHANGED
@@ -1,18 +1,18 @@
1
- Stackdriver Clouderrorreporting API for Ruby
1
+ Stackdriver Error Reporting API for Ruby
2
2
  =================================================
3
3
 
4
4
  google-cloud-error_reporting uses [Google API extensions][google-gax] to provide an
5
- easy-to-use client library for the [Stackdriver Clouderrorreporting API][] (v1beta1) defined in the [googleapis][] git repository
5
+ easy-to-use client library for the [Stackdriver Error Reporting API][] (v1beta1) defined in the [googleapis][] git repository
6
6
 
7
7
 
8
- [googleapis]: https://github.com/googleapis/googleapis/tree/master/google/google/devtools/clouderrorreporting/v1beta1
8
+ [googleapis]: https://github.com/googleapis/googleapis/tree/master/google/devtools/clouderrorreporting/v1beta1
9
9
  [google-gax]: https://github.com/googleapis/gax-ruby
10
- [Stackdriver Clouderrorreporting API]: https://developers.google.com/apis-explorer/#p/clouderrorreporting/v1beta1/
10
+ [Stackdriver Error Reporting API]: https://developers.google.com/apis-explorer/#p/clouderrorreporting/v1beta1/
11
11
 
12
12
  Getting started
13
13
  ---------------
14
14
 
15
- google-cloud-error_reporting will allow you to connect to the [Stackdriver Clouderrorreporting API][] and access all its methods.
15
+ google-cloud-error_reporting will allow you to connect to the [Stackdriver Error Reporting API][] and access all its methods.
16
16
 
17
17
  In order to achieve so you need to set up authentication as well as install the library locally.
18
18
 
@@ -29,7 +29,7 @@ or
29
29
 
30
30
  $ gcloud auth login
31
31
 
32
- Please see [[gcloud beta auth application-default login][] document for the difference between these commands.
32
+ Please see [gcloud beta auth application-default login][] document for the difference between these commands.
33
33
 
34
34
  [Google Cloud SDK]: https://cloud.google.com/sdk/
35
35
  [gcloud beta auth application-default login]: https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/login
@@ -0,0 +1,24 @@
1
+ # Copyright 2016 Google Inc. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ ##
16
+ # This file is here to be autorequired by bundler, so that the .logging and
17
+ # #logging methods can be available, but the library and all dependencies won't
18
+ # be loaded until required and used.
19
+
20
+
21
+ gem "google-cloud-core"
22
+ require "google/cloud"
23
+
24
+ # There is no Google::Cloud integration to add.
@@ -12,6 +12,9 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+
16
+ require "google/cloud/core/environment"
17
+ require "google/cloud/error_reporting/v1beta1"
15
18
  require "rack"
16
19
  require "rack/request"
17
20
 
@@ -33,8 +36,9 @@ module Google
33
36
  # Construct a new instance of Middleware
34
37
  #
35
38
  # @param [Rack Application] app The Rack application
36
- # @param [Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi]
37
- # error_reporting A ErrorReporting::V1beta1::ReportErrorsServiceApi
39
+ # @param [
40
+ # Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceClient]
41
+ # error_reporting A ErrorReporting::V1beta1::ReportErrorsServiceClient
38
42
  # object to for reporting exceptions
39
43
  # @param [String] project_id Name of GCP project. Default to
40
44
  # ENV["ERROR_REPORTING_PROJECT"] then ENV["GOOGLE_CLOUD_PROJECT"].
@@ -50,13 +54,14 @@ module Google
50
54
  # @return [Google::Cloud::ErrorReporting::Middleware] A new instance of
51
55
  # Middleware
52
56
  #
53
- def initialize app, error_reporting: nil, project_id: nil,
54
- service_name: nil, service_version: nil,
57
+ def initialize app,
58
+ error_reporting: V1beta1::ReportErrorsServiceClient.new,
59
+ project_id: nil,
60
+ service_name: nil,
61
+ service_version: nil,
55
62
  ignore_classes: nil
56
63
  @app = app
57
- @error_reporting = error_reporting ||
58
- Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi.new
59
-
64
+ @error_reporting = error_reporting
60
65
  @service_name = service_name ||
61
66
  ENV["ERROR_REPORTING_SERVICE"] ||
62
67
  Google::Cloud::Core::Environment.gae_module_id ||
@@ -70,7 +75,7 @@ module Google
70
75
  ENV["GOOGLE_CLOUD_PROJECT"] ||
71
76
  Google::Cloud::Core::Environment.project_id
72
77
 
73
- raise ArgumentError, "project_id is required" if @project_id.nil?
78
+ fail ArgumentError, "project_id is required" if @project_id.nil?
74
79
  end
75
80
 
76
81
  ##
@@ -113,16 +118,15 @@ module Google
113
118
  # Do not any exceptions that's specified by the ignore_classes list.
114
119
  return if ignore_classes.include? exception.class
115
120
 
116
- error_event = build_error_event_from_exception env,
117
- exception
121
+ error_event_grpc = build_error_event_from_exception env, exception
118
122
 
119
123
  # If this exception maps to a HTTP status code less than 500, do
120
124
  # not report it.
121
125
  status_code =
122
- error_event.context.http_request.response_status_code.to_i
126
+ error_event_grpc.context.http_request.response_status_code.to_i
123
127
  return if status_code > 0 && status_code < 500
124
128
 
125
- error_reporting.report_error_event full_project_id, error_event
129
+ error_reporting.report_error_event full_project_id, error_event_grpc
126
130
  end
127
131
 
128
132
  ##
@@ -137,80 +141,42 @@ module Google
137
141
  # @param [Hash] env Rack environment hash
138
142
  # @param [Exception] exception Exception to convert from
139
143
  #
140
- # @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent]
141
- # The gRPC ReportedErrorEvent object that's based on given exception
144
+ # @return [
145
+ # Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent]
146
+ # The gRPC ReportedErrorEvent object that's based
147
+ # on given exception
142
148
  #
143
149
  def build_error_event_from_exception env, exception
144
- # Build service_context hash
145
- service_context = {
146
- service: service_name,
147
- version: service_version
148
- }.delete_if { |k,v| v.nil? }
149
-
150
- # Build error message and source_location hash
151
- if exception.backtrace.nil? || exception.backtrace.empty?
152
- message = exception.message
153
- report_location = nil
154
- else
155
- message = "#{exception.backtrace.first}: #{exception.message} " \
156
- "(#{exception.class})\n\t" +
157
- exception.backtrace.drop(1).join("\n\t")
158
- file_path, line_number, function_name =
159
- exception.backtrace.first.split(":")
160
- function_name = function_name.to_s[/`(.*)'/, 1]
161
- report_location = {
162
- file_path: file_path,
163
- function_name: function_name,
164
- line_number: line_number.to_i
165
- }.delete_if { |k,v| v.nil? }
166
- end
150
+ error_event = ErrorEvent.from_exception exception
151
+
152
+ # Inject service_context info into error_event object
153
+ error_event[:service_context] = {
154
+ service: service_name,
155
+ version: service_version
156
+ }.delete_if { |_, v| v.nil? }
167
157
 
168
- # Build http_request_context hash
158
+ # Inject http_request_context info into error_event object
169
159
  rack_request = Rack::Request.new env
170
- http_method = rack_request.request_method
171
- http_url = rack_request.url
172
- http_user_agent = rack_request.user_agent
173
- http_referrer = rack_request.referrer
174
- http_status = get_http_status exception
175
- http_remote_ip = rack_request.ip
176
- http_request_context = {
177
- method: http_method,
178
- url: http_url,
179
- user_agent: http_user_agent,
180
- referrer: http_referrer,
181
- response_status_code: http_status,
182
- remote_ip: http_remote_ip
183
- }.delete_if { |k,v| v.nil? }
184
-
185
- # Build error_context hash
186
- error_context = {
187
- http_request: http_request_context,
188
- user: ENV["USER"],
189
- report_location: report_location,
190
- }.delete_if { |k,v| v.nil? }
191
-
192
- # Build error_event hash
193
- t = Time.now
194
- error_event = {
195
- event_time: {
196
- seconds: t.to_i,
197
- nanos: t.nsec
198
- },
199
- service_context: service_context,
200
- message: message,
201
- context: error_context
202
- }.delete_if { |k,v| v.nil? }
203
-
204
- # Finally build and return GRPC ErrorEvent
205
- Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent.decode_json \
206
- error_event.to_json
160
+ error_event[:context][:http_request] = {
161
+ method: rack_request.request_method,
162
+ url: rack_request.url,
163
+ user_agent: rack_request.user_agent,
164
+ referrer: rack_request.referrer,
165
+ response_status_code: get_http_status(exception),
166
+ remote_ip: rack_request.ip
167
+ }.delete_if { |_, v| v.nil? }
168
+
169
+ error_event.to_grpc
207
170
  end
208
171
 
209
172
  ##
210
- # Build full ReportErrorsServiceApi project_path from project_id, which
211
- # is in "projects/#{project_id}" format.
173
+ # Build full ReportErrorsServiceClient project_path from project_id,
174
+ # which is in "projects/#{project_id}" format.
175
+ #
176
+ # @return [String] fully qualified project id in
177
+ # "projects/#{project_id}" format
212
178
  def full_project_id
213
- Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi.project_path project_id
179
+ V1beta1::ReportErrorsServiceClient.project_path project_id
214
180
  end
215
181
 
216
182
  private
@@ -238,6 +204,110 @@ module Google
238
204
 
239
205
  http_status
240
206
  end
207
+
208
+ ##
209
+ # This class implements a hash representation of
210
+ # Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent
211
+ class ErrorEvent
212
+ # Internal data structure mirroring gRPC ReportedErrorEvent structure
213
+ attr_reader :hash
214
+
215
+ ##
216
+ # Construct a new ErrorEvent object
217
+ #
218
+ # @return [ErrorEvent] A new ErrorEvent object
219
+ def initialize
220
+ @hash = {}
221
+ end
222
+
223
+ ##
224
+ # Construct an ErrorEvent object based on a given exception
225
+ #
226
+ # @param [Exception] exception A Ruby exception
227
+ #
228
+ # @return [ErrorEvent] An ErrorEvent object containing information
229
+ # from the given exception
230
+ def self.from_exception exception
231
+ exception_data = extract_exception exception
232
+
233
+ # Build error_context hash
234
+ error_context = {
235
+ user: ENV["USER"],
236
+ report_location: {
237
+ file_path: exception_data[:file_path],
238
+ function_name: exception_data[:function_name],
239
+ line_number: exception_data[:line_number].to_i
240
+ }.delete_if { |_, v| v.nil? }
241
+ }.delete_if { |_, v| v.nil? }
242
+
243
+ # Build error_event hash
244
+ error_event = ErrorEvent.new
245
+ t = Time.now
246
+ error_event.hash.merge!({
247
+ event_time: {
248
+ seconds: t.to_i,
249
+ nanos: t.nsec
250
+ },
251
+ message: exception_data[:message],
252
+ context: error_context
253
+ }.delete_if { |_, v| v.nil? })
254
+
255
+ error_event
256
+ end
257
+
258
+ ##
259
+ # Helper method extract data from exception
260
+ #
261
+ # @param [Exception] exception A Ruby Exception
262
+ #
263
+ # @return [Hash] A hash containing formatted error message with
264
+ # backtrace, file_path, line_number, and function_name
265
+ def self.extract_exception exception
266
+ if exception.backtrace.nil? || exception.backtrace.empty?
267
+ message = exception.message
268
+ else
269
+ message = "#{exception.backtrace.first}: #{exception.message} " \
270
+ "(#{exception.class})\n\t" +
271
+ exception.backtrace.drop(1).join("\n\t")
272
+ file_path, line_number, function_name =
273
+ exception.backtrace.first.split(":")
274
+ function_name = function_name.to_s[/`(.*)'/, 1]
275
+ end
276
+
277
+ {
278
+ message: message,
279
+ file_path: file_path,
280
+ line_number: line_number,
281
+ function_name: function_name
282
+ }
283
+ end
284
+ private_class_method :extract_exception
285
+
286
+ ##
287
+ # Get the value of the given key from internal hash
288
+ def [] key
289
+ hash[key]
290
+ end
291
+
292
+ ##
293
+ # Write new value with the key in internal hash
294
+ def []= key, value
295
+ hash[key] = value
296
+ end
297
+
298
+ ##
299
+ # Convert ErrorEvent object to gRPC struct
300
+ #
301
+ # @return [Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent]
302
+ # gRPC struct that represent an ErrorEvent
303
+ def to_grpc
304
+ grpc_module =
305
+ Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent
306
+ grpc_module.decode_json hash.to_json
307
+ end
308
+ end
309
+
310
+ private_constant :ErrorEvent
241
311
  end
242
312
  end
243
313
  end
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
+ require "google/cloud/core/environment"
16
17
  require "google/cloud/error_reporting/v1beta1"
17
18
  require "google/cloud/credentials"
18
19
 
@@ -23,18 +24,18 @@ module Google
23
24
  # Railtie
24
25
  #
25
26
  # Google::Cloud::ErrorReporting::Railtie automatically add the
26
- # Google::Cloud::ErrorReporting::Middleware to Rack in a Rails environment.
27
- # It will automatically capture Exceptions from the Rails app and report
28
- # them to Stackdriver Error Reporting.
27
+ # Google::Cloud::ErrorReporting::Middleware to Rack in a Rails
28
+ # environment. It will automatically capture Exceptions from the Rails app
29
+ # and report them to Stackdriver Error Reporting.
29
30
  #
30
31
  # The Middleware is only added when certain conditions are met. See
31
32
  # {Railtie.use_error_reporting?} for detail.
32
33
  #
33
34
  # When loaded, the Google::Cloud::ErrorReporting::Middleware will be
34
- # inserted after ::ActionDispatch::DebugExceptions Middleware, which allows
35
- # it to actually rescue all Exceptions and throw it back up. The middleware
36
- # should also be initialized with correct gcp project_id, keyfile,
37
- # service_name, and service_version if they are defined in
35
+ # inserted after ::ActionDispatch::DebugExceptions Middleware, which
36
+ # allows it to actually rescue all Exceptions and throw it back up. The
37
+ # middleware should also be initialized with correct gcp project_id,
38
+ # keyfile, service_name, and service_version if they are defined in
38
39
  # Rails environment files as follow:
39
40
  # config.google_cloud.project_id = "my-gcp-project"
40
41
  # config.google_cloud.keyfile = "/path/to/secret.json"
@@ -61,10 +62,11 @@ module Google
61
62
  service_name = er_config.service_name
62
63
  service_version = er_config.service_version
63
64
 
64
- error_reporting =
65
- Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi.new channel: channel,
66
- app_name: service_name,
67
- app_version: service_version
65
+ error_reporting = V1beta1::ReportErrorsServiceClient.new(
66
+ channel: channel,
67
+ app_name: service_name,
68
+ app_version: service_version
69
+ )
68
70
 
69
71
  # In later versions of Rails, ActionDispatch::DebugExceptions is
70
72
  # responsible for catching exceptions. But it didn't exist until
@@ -77,7 +79,7 @@ module Google
77
79
  end
78
80
 
79
81
  app.middleware.insert_after rails_exception_middleware,
80
- Google::Cloud::ErrorReporting::Middleware,
82
+ Middleware,
81
83
  project_id: project_id,
82
84
  error_reporting: error_reporting,
83
85
  service_name: service_name,
@@ -97,7 +99,7 @@ module Google
97
99
  def self.grpc_channel keyfile = nil
98
100
  require "grpc"
99
101
 
100
- scopes = Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi::ALL_SCOPES
102
+ scopes = V1beta1::ReportErrorsServiceClient::ALL_SCOPES
101
103
  credentials = if keyfile.nil?
102
104
  Google::Cloud::Credentials.default(
103
105
  scope: scopes)
@@ -111,7 +113,7 @@ module Google
111
113
 
112
114
  channel_cred = GRPC::Core::ChannelCredentials.new.compose \
113
115
  GRPC::Core::CallCredentials.new credentials.client.updater_proc
114
- host = Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi::SERVICE_ADDRESS
116
+ host = V1beta1::ReportErrorsServiceClient::SERVICE_ADDRESS
115
117
 
116
118
  GRPC::Core::Channel.new host, nil, channel_cred
117
119
  end
@@ -143,18 +145,13 @@ module Google
143
145
  keyfile = er_config.keyfile || gcp_config.keyfile
144
146
  begin
145
147
  grpc_channel keyfile
146
- rescue Exception => e
148
+ rescue StandardError => e
147
149
  Rails.logger.warn "Google::Cloud::ErrorReporting is not " \
148
150
  "activated due to authorization error: #{e.message}"
149
151
  return false
150
152
  end
151
153
 
152
- project_id = er_config.project_id ||
153
- gcp_config.project_id ||
154
- ENV["ERROR_REPORTING_PROJECT"] ||
155
- ENV["GOOGLE_CLOUD_PROJECT"] ||
156
- Google::Cloud::Core::Environment.project_id
157
- if project_id.to_s.empty?
154
+ if project_id(config).to_s.empty?
158
155
  Rails.logger.warn "Google::Cloud::ErrorReporting is not " \
159
156
  "activated due to empty project_id"
160
157
  return false
@@ -166,6 +163,24 @@ module Google
166
163
  (gcp_config.key?(:use_error_reporting) &&
167
164
  gcp_config.use_error_reporting)
168
165
  end
166
+
167
+ ##
168
+ # Determine the GCP project_id from Rails configuration or environment
169
+ # variables. Default to Google::Cloud::Core::Environment.project_id
170
+ #
171
+ # @param [Rails::Railtie::Configuration] config The
172
+ # Rails.application.config
173
+ #
174
+ # @return [String] GCP project_id
175
+ #
176
+ def self.project_id config
177
+ config.google_cloud.error_reporting.project_id ||
178
+ config.google_cloud.project_id ||
179
+ ENV["ERROR_REPORTING_PROJECT"] ||
180
+ ENV["GOOGLE_CLOUD_PROJECT"] ||
181
+ Google::Cloud::Core::Environment.project_id
182
+ end
183
+ private_class_method :project_id
169
184
  end
170
185
  end
171
186
  end
@@ -14,11 +14,6 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- require "google/cloud/error_reporting/v1beta1/error_group_service_api"
18
- require "google/cloud/error_reporting/v1beta1/error_stats_service_api"
19
- require "google/cloud/error_reporting/v1beta1/report_errors_service_api"
20
- # Require the protobufs so we can create objects before GRPC is loaded.
21
- require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb"
22
-
23
- require "google/cloud/core/environment"
24
- require "google/cloud/error_reporting/middleware"
17
+ require "google/cloud/error_reporting/v1beta1/error_group_service_client"
18
+ require "google/cloud/error_reporting/v1beta1/error_stats_service_client"
19
+ require "google/cloud/error_reporting/v1beta1/report_errors_service_client"
@@ -15,6 +15,34 @@
15
15
  module Google
16
16
  module Devtools
17
17
  module Clouderrorreporting
18
+ ##
19
+ # The `Google::Devtools::Clouderrorreporting::V1beta1` module provides the following types:
20
+ #
21
+ # Class | Description
22
+ # ----- | -----------
23
+ # {Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsRequest} | Deletes all events in the project.
24
+ # {Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse} | Response message for deleting error events.
25
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ErrorContext} | A description of the context in which an error occurred.
26
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ErrorEvent} | An error event which is returned by the Error Reporting system.
27
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup} | Description of a group of similar error events.
28
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupOrder} | A sorting order of error groups.
29
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupStats} | Data extracted for a specific group based on certain filter criteria.
30
+ # {Google::Devtools::Clouderrorreporting::V1beta1::HttpRequestContext} | HTTP request data that is related to a reported error.
31
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ListEventsRequest} | Specifies a set of error events to return.
32
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ListEventsResponse} | Contains a set of requested error events.
33
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ListGroupStatsRequest} | Specifies a set of {Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupStats} to return.
34
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ListGroupStatsResponse} | Contains a set of requested error group stats.
35
+ # {Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange} | Requests might be rejected or the resulting timed count durations might be adjusted for lower durations.
36
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent} | An error event which is reported to the Error Reporting system.
37
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorEventRequest} | A request for reporting an individual error event.
38
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorEventResponse} | Response for reporting an individual error event.
39
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ServiceContext} | Describes a running service that sends errors.
40
+ # {Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter} | Specifies criteria for filtering a subset of service contexts.
41
+ # {Google::Devtools::Clouderrorreporting::V1beta1::SourceLocation} | Indicates a location in the source code of the service for which errors are reported.
42
+ # {Google::Devtools::Clouderrorreporting::V1beta1::TimedCount} | The number of errors in a given time period.
43
+ # {Google::Devtools::Clouderrorreporting::V1beta1::TimedCountAlignment} | Specifies how the time periods of error group counts are aligned.
44
+ # {Google::Devtools::Clouderrorreporting::V1beta1::TrackingIssue} | Information related to tracking the progress on resolving the error.
45
+ #
18
46
  module V1beta1
19
47
  # Description of a group of similar error events.
20
48
  # @!attribute [rw] name
@@ -69,6 +97,13 @@ module Google
69
97
  # @return [String]
70
98
  # Represents the source code version that the developer provided,
71
99
  # which could represent a version label or a Git SHA-1 hash, for example.
100
+ # @!attribute [rw] resource_type
101
+ # @return [String]
102
+ # Type of the MonitoredResource. List of possible values:
103
+ # https://cloud.google.com/monitoring/api/resources
104
+ #
105
+ # Value is set automatically for incoming errors and must not be set when
106
+ # reporting errors.
72
107
  class ServiceContext; end
73
108
 
74
109
  # A description of the context in which an error occurred.
@@ -147,4 +182,4 @@ module Google
147
182
  end
148
183
  end
149
184
  end
150
- end
185
+ end
@@ -35,7 +35,9 @@ module Google
35
35
  # Data for all service contexts is returned if this field is not specified.
36
36
  # @!attribute [rw] time_range
37
37
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
38
- # [Required] List data for the given time range.
38
+ # [Optional] List data for the given time range.
39
+ # If not set a default time range is used. The field time_range_begin
40
+ # in the response will specify the beginning of this time range.
39
41
  # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
40
42
  # range are returned, unless the request contains an explicit group_id list.
41
43
  # If a group_id list is given, also <code>ErrorGroupStats</code> with zero
@@ -76,6 +78,12 @@ module Google
76
78
  # If non-empty, more results are available.
77
79
  # Pass this token, along with the same query parameters as the first
78
80
  # request, to view the next page of results.
81
+ # @!attribute [rw] time_range_begin
82
+ # @return [Google::Protobuf::Timestamp]
83
+ # The timestamp specifies the start time to which the request was restricted.
84
+ # The start time is set based on the requested time range. It may be adjusted
85
+ # to a later time if a project has exceeded the storage quota and older data
86
+ # has been deleted.
79
87
  class ListGroupStatsResponse; end
80
88
 
81
89
  # Data extracted for a specific group based on certain filter criteria,
@@ -156,7 +164,8 @@ module Google
156
164
  # @return [String]
157
165
  # [Required] The resource name of the Google Cloud Platform project. Written
158
166
  # as +projects/+ plus the
159
- # {Google Cloud Platform project ID}[https://support.google.com/cloud/answer/6158840].
167
+ # {Google Cloud Platform project
168
+ # ID}[https://support.google.com/cloud/answer/6158840].
160
169
  # Example: +projects/my-project-123+.
161
170
  # @!attribute [rw] group_id
162
171
  # @return [String]
@@ -169,6 +178,8 @@ module Google
169
178
  # @!attribute [rw] time_range
170
179
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
171
180
  # [Optional] List only data for the given time range.
181
+ # If not set a default time range is used. The field time_range_begin
182
+ # in the response will specify the beginning of this time range.
172
183
  # @!attribute [rw] page_size
173
184
  # @return [Integer]
174
185
  # [Optional] The maximum number of results to return per response.
@@ -186,6 +197,9 @@ module Google
186
197
  # If non-empty, more results are available.
187
198
  # Pass this token, along with the same query parameters as the first
188
199
  # request, to view the next page of results.
200
+ # @!attribute [rw] time_range_begin
201
+ # @return [Google::Protobuf::Timestamp]
202
+ # The timestamp specifies the start time to which the request was restricted.
189
203
  class ListEventsResponse; end
190
204
 
191
205
  # Requests might be rejected or the resulting timed count durations might be
@@ -233,6 +247,10 @@ module Google
233
247
  # @return [String]
234
248
  # [Optional] The exact value to match against
235
249
  # {+ServiceContext.version+}[https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version].
250
+ # @!attribute [rw] resource_type
251
+ # @return [String]
252
+ # [Optional] The exact value to match against
253
+ # {+ServiceContext.resource_type+}[https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type].
236
254
  class ServiceContextFilter; end
237
255
 
238
256
  # Deletes all events in the project.
@@ -240,7 +258,8 @@ module Google
240
258
  # @return [String]
241
259
  # [Required] The resource name of the Google Cloud Platform project. Written
242
260
  # as +projects/+ plus the
243
- # {Google Cloud Platform project ID}[https://support.google.com/cloud/answer/6158840].
261
+ # {Google Cloud Platform project
262
+ # ID}[https://support.google.com/cloud/answer/6158840].
244
263
  # Example: +projects/my-project-123+.
245
264
  class DeleteEventsRequest; end
246
265
 
@@ -290,4 +309,4 @@ module Google
290
309
  end
291
310
  end
292
311
  end
293
- end
312
+ end
@@ -68,4 +68,4 @@ module Google
68
68
  # to +999,999,999 inclusive.
69
69
  class Duration; end
70
70
  end
71
- end
71
+ end
@@ -80,4 +80,4 @@ module Google
80
80
  # inclusive.
81
81
  class Timestamp; end
82
82
  end
83
- end
83
+ end
@@ -36,7 +36,7 @@ module Google
36
36
  #
37
37
  # @!attribute [r] error_group_service_stub
38
38
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupService::Stub]
39
- class ErrorGroupServiceApi
39
+ class ErrorGroupServiceClient
40
40
  attr_reader :error_group_service_stub
41
41
 
42
42
  # The default address of the service.
@@ -121,6 +121,7 @@ module Google
121
121
  require "google/gax/grpc"
122
122
  require "google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb"
123
123
 
124
+
124
125
  google_api_client = "#{app_name}/#{app_version} " \
125
126
  "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
126
127
  "ruby/#{RUBY_VERSION}".freeze
@@ -177,13 +178,13 @@ module Google
177
178
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup]
178
179
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
179
180
  # @example
180
- # require "google/cloud/error_reporting/v1beta1/error_group_service_api"
181
+ # require "google/cloud/error_reporting/v1beta1/error_group_service_client"
181
182
  #
182
- # ErrorGroupServiceApi = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceApi
183
+ # ErrorGroupServiceClient = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient
183
184
  #
184
- # error_group_service_api = ErrorGroupServiceApi.new
185
- # formatted_group_name = ErrorGroupServiceApi.group_path("[PROJECT]", "[GROUP]")
186
- # response = error_group_service_api.get_group(formatted_group_name)
185
+ # error_group_service_client = ErrorGroupServiceClient.new
186
+ # formatted_group_name = ErrorGroupServiceClient.group_path("[PROJECT]", "[GROUP]")
187
+ # response = error_group_service_client.get_group(formatted_group_name)
187
188
 
188
189
  def get_group \
189
190
  group_name,
@@ -205,14 +206,14 @@ module Google
205
206
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup]
206
207
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
207
208
  # @example
208
- # require "google/cloud/error_reporting/v1beta1/error_group_service_api"
209
+ # require "google/cloud/error_reporting/v1beta1/error_group_service_client"
209
210
  #
210
211
  # ErrorGroup = Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup
211
- # ErrorGroupServiceApi = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceApi
212
+ # ErrorGroupServiceClient = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient
212
213
  #
213
- # error_group_service_api = ErrorGroupServiceApi.new
214
+ # error_group_service_client = ErrorGroupServiceClient.new
214
215
  # group = ErrorGroup.new
215
- # response = error_group_service_api.update_group(group)
216
+ # response = error_group_service_client.update_group(group)
216
217
 
217
218
  def update_group \
218
219
  group,
@@ -37,7 +37,7 @@ module Google
37
37
  #
38
38
  # @!attribute [r] error_stats_service_stub
39
39
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorStatsService::Stub]
40
- class ErrorStatsServiceApi
40
+ class ErrorStatsServiceClient
41
41
  attr_reader :error_stats_service_stub
42
42
 
43
43
  # The default address of the service.
@@ -126,6 +126,7 @@ module Google
126
126
  require "google/gax/grpc"
127
127
  require "google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb"
128
128
 
129
+
129
130
  google_api_client = "#{app_name}/#{app_version} " \
130
131
  "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
131
132
  "ruby/#{RUBY_VERSION}".freeze
@@ -186,7 +187,9 @@ module Google
186
187
  # context that matches the filter.
187
188
  # Data for all service contexts is returned if this field is not specified.
188
189
  # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
189
- # [Required] List data for the given time range.
190
+ # [Optional] List data for the given time range.
191
+ # If not set a default time range is used. The field time_range_begin
192
+ # in the response will specify the beginning of this time range.
190
193
  # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
191
194
  # range are returned, unless the request contains an explicit group_id list.
192
195
  # If a group_id list is given, also <code>ErrorGroupStats</code> with zero
@@ -219,22 +222,22 @@ module Google
219
222
  # object.
220
223
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
221
224
  # @example
222
- # require "google/cloud/error_reporting/v1beta1/error_stats_service_api"
225
+ # require "google/cloud/error_reporting/v1beta1/error_stats_service_client"
223
226
  #
224
- # ErrorStatsServiceApi = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceApi
227
+ # ErrorStatsServiceClient = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient
225
228
  # QueryTimeRange = Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange
226
229
  #
227
- # error_stats_service_api = ErrorStatsServiceApi.new
228
- # formatted_project_name = ErrorStatsServiceApi.project_path("[PROJECT]")
230
+ # error_stats_service_client = ErrorStatsServiceClient.new
231
+ # formatted_project_name = ErrorStatsServiceClient.project_path("[PROJECT]")
229
232
  # time_range = QueryTimeRange.new
230
233
  #
231
234
  # # Iterate over all results.
232
- # error_stats_service_api.list_group_stats(formatted_project_name, time_range).each do |element|
235
+ # error_stats_service_client.list_group_stats(formatted_project_name, time_range).each do |element|
233
236
  # # Process element.
234
237
  # end
235
238
  #
236
239
  # # Or iterate over results one page at a time.
237
- # error_stats_service_api.list_group_stats(formatted_project_name, time_range).each_page do |page|
240
+ # error_stats_service_client.list_group_stats(formatted_project_name, time_range).each_page do |page|
238
241
  # # Process each page at a time.
239
242
  # page.each do |element|
240
243
  # # Process element.
@@ -271,7 +274,8 @@ module Google
271
274
  # @param project_name [String]
272
275
  # [Required] The resource name of the Google Cloud Platform project. Written
273
276
  # as +projects/+ plus the
274
- # {Google Cloud Platform project ID}[https://support.google.com/cloud/answer/6158840].
277
+ # {Google Cloud Platform project
278
+ # ID}[https://support.google.com/cloud/answer/6158840].
275
279
  # Example: +projects/my-project-123+.
276
280
  # @param group_id [String]
277
281
  # [Required] The group for which events shall be returned.
@@ -281,6 +285,8 @@ module Google
281
285
  # Data for all service contexts is returned if this field is not specified.
282
286
  # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
283
287
  # [Optional] List only data for the given time range.
288
+ # If not set a default time range is used. The field time_range_begin
289
+ # in the response will specify the beginning of this time range.
284
290
  # @param page_size [Integer]
285
291
  # The maximum number of resources contained in the underlying API
286
292
  # response. If page streaming is performed per-resource, this
@@ -297,21 +303,21 @@ module Google
297
303
  # object.
298
304
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
299
305
  # @example
300
- # require "google/cloud/error_reporting/v1beta1/error_stats_service_api"
306
+ # require "google/cloud/error_reporting/v1beta1/error_stats_service_client"
301
307
  #
302
- # ErrorStatsServiceApi = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceApi
308
+ # ErrorStatsServiceClient = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient
303
309
  #
304
- # error_stats_service_api = ErrorStatsServiceApi.new
305
- # formatted_project_name = ErrorStatsServiceApi.project_path("[PROJECT]")
310
+ # error_stats_service_client = ErrorStatsServiceClient.new
311
+ # formatted_project_name = ErrorStatsServiceClient.project_path("[PROJECT]")
306
312
  # group_id = ''
307
313
  #
308
314
  # # Iterate over all results.
309
- # error_stats_service_api.list_events(formatted_project_name, group_id).each do |element|
315
+ # error_stats_service_client.list_events(formatted_project_name, group_id).each do |element|
310
316
  # # Process element.
311
317
  # end
312
318
  #
313
319
  # # Or iterate over results one page at a time.
314
- # error_stats_service_api.list_events(formatted_project_name, group_id).each_page do |page|
320
+ # error_stats_service_client.list_events(formatted_project_name, group_id).each_page do |page|
315
321
  # # Process each page at a time.
316
322
  # page.each do |element|
317
323
  # # Process element.
@@ -340,7 +346,8 @@ module Google
340
346
  # @param project_name [String]
341
347
  # [Required] The resource name of the Google Cloud Platform project. Written
342
348
  # as +projects/+ plus the
343
- # {Google Cloud Platform project ID}[https://support.google.com/cloud/answer/6158840].
349
+ # {Google Cloud Platform project
350
+ # ID}[https://support.google.com/cloud/answer/6158840].
344
351
  # Example: +projects/my-project-123+.
345
352
  # @param options [Google::Gax::CallOptions]
346
353
  # Overrides the default settings for this call, e.g, timeout,
@@ -348,13 +355,13 @@ module Google
348
355
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
349
356
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
350
357
  # @example
351
- # require "google/cloud/error_reporting/v1beta1/error_stats_service_api"
358
+ # require "google/cloud/error_reporting/v1beta1/error_stats_service_client"
352
359
  #
353
- # ErrorStatsServiceApi = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceApi
360
+ # ErrorStatsServiceClient = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient
354
361
  #
355
- # error_stats_service_api = ErrorStatsServiceApi.new
356
- # formatted_project_name = ErrorStatsServiceApi.project_path("[PROJECT]")
357
- # response = error_stats_service_api.delete_events(formatted_project_name)
362
+ # error_stats_service_client = ErrorStatsServiceClient.new
363
+ # formatted_project_name = ErrorStatsServiceClient.project_path("[PROJECT]")
364
+ # response = error_stats_service_client.delete_events(formatted_project_name)
358
365
 
359
366
  def delete_events \
360
367
  project_name,
@@ -36,7 +36,7 @@ module Google
36
36
  #
37
37
  # @!attribute [r] report_errors_service_stub
38
38
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorsService::Stub]
39
- class ReportErrorsServiceApi
39
+ class ReportErrorsServiceClient
40
40
  attr_reader :report_errors_service_stub
41
41
 
42
42
  # The default address of the service.
@@ -112,6 +112,7 @@ module Google
112
112
  require "google/gax/grpc"
113
113
  require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb"
114
114
 
115
+
115
116
  google_api_client = "#{app_name}/#{app_version} " \
116
117
  "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
117
118
  "ruby/#{RUBY_VERSION}".freeze
@@ -169,15 +170,15 @@ module Google
169
170
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorEventResponse]
170
171
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
171
172
  # @example
172
- # require "google/cloud/error_reporting/v1beta1/report_errors_service_api"
173
+ # require "google/cloud/error_reporting/v1beta1/report_errors_service_client"
173
174
  #
174
- # ReportErrorsServiceApi = Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi
175
+ # ReportErrorsServiceClient = Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceClient
175
176
  # ReportedErrorEvent = Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent
176
177
  #
177
- # report_errors_service_api = ReportErrorsServiceApi.new
178
- # formatted_project_name = ReportErrorsServiceApi.project_path("[PROJECT]")
178
+ # report_errors_service_client = ReportErrorsServiceClient.new
179
+ # formatted_project_name = ReportErrorsServiceClient.project_path("[PROJECT]")
179
180
  # event = ReportedErrorEvent.new
180
- # response = report_errors_service_api.report_error_event(formatted_project_name, event)
181
+ # response = report_errors_service_client.report_error_event(formatted_project_name, event)
181
182
 
182
183
  def report_error_event \
183
184
  project_name,
@@ -4,6 +4,7 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
+ require 'google/api/monitored_resource_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do
@@ -23,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
24
  add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContext" do
24
25
  optional :service, :string, 2
25
26
  optional :version, :string, 3
27
+ optional :resource_type, :string, 4
26
28
  end
27
29
  add_message "google.devtools.clouderrorreporting.v1beta1.ErrorContext" do
28
30
  optional :http_request, :message, 1, "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext"
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse" do
24
24
  repeated :error_group_stats, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats"
25
25
  optional :next_page_token, :string, 2
26
+ optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
26
27
  end
27
28
  add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats" do
28
29
  optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup"
@@ -51,6 +52,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
51
52
  add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse" do
52
53
  repeated :error_events, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
53
54
  optional :next_page_token, :string, 2
55
+ optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
54
56
  end
55
57
  add_message "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" do
56
58
  optional :period, :enum, 1, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period"
@@ -66,6 +68,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
66
68
  add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" do
67
69
  optional :service, :string, 2
68
70
  optional :version, :string, 3
71
+ optional :resource_type, :string, 4
69
72
  end
70
73
  add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest" do
71
74
  optional :project_name, :string, 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.2
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '5.2'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "<="
144
+ - !ruby/object:Gem::Version
145
+ version: 0.35.1
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "<="
151
+ - !ruby/object:Gem::Version
152
+ version: 0.35.1
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: actionpack
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -154,16 +168,16 @@ dependencies:
154
168
  name: railties
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - ">="
171
+ - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '3.2'
173
+ version: '4.0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - ">="
178
+ - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: '3.2'
180
+ version: '4.0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: rack
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +192,8 @@ dependencies:
178
192
  - - ">="
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0.1'
181
- description: a grpc-based api
195
+ description: google-cloud-error_reporting is the official library for Stackdriver
196
+ Error Reporting.
182
197
  email:
183
198
  - googleapis-packages@google.com
184
199
  executables: []
@@ -188,6 +203,7 @@ files:
188
203
  - ".yardopts"
189
204
  - LICENSE
190
205
  - README.md
206
+ - lib/google-cloud-error_reporting.rb
191
207
  - lib/google/cloud/error_reporting/middleware.rb
192
208
  - lib/google/cloud/error_reporting/rails.rb
193
209
  - lib/google/cloud/error_reporting/v1beta1.rb
@@ -196,11 +212,11 @@ files:
196
212
  - lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb
197
213
  - lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/duration.rb
198
214
  - lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/timestamp.rb
199
- - lib/google/cloud/error_reporting/v1beta1/error_group_service_api.rb
215
+ - lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb
200
216
  - lib/google/cloud/error_reporting/v1beta1/error_group_service_client_config.json
201
- - lib/google/cloud/error_reporting/v1beta1/error_stats_service_api.rb
217
+ - lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb
202
218
  - lib/google/cloud/error_reporting/v1beta1/error_stats_service_client_config.json
203
- - lib/google/cloud/error_reporting/v1beta1/report_errors_service_api.rb
219
+ - lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb
204
220
  - lib/google/cloud/error_reporting/v1beta1/report_errors_service_client_config.json
205
221
  - lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb
206
222
  - lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb
@@ -229,8 +245,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
245
  version: '0'
230
246
  requirements: []
231
247
  rubyforge_project:
232
- rubygems_version: 2.5.1
248
+ rubygems_version: 2.6.10
233
249
  signing_key:
234
250
  specification_version: 4
235
- summary: Google client library for the Stackdriver Clouderrorreporting service
251
+ summary: API Client library for Stackdriver Error Reporting
236
252
  test_files: []