2929
3030module Google
3131 module Cloud
32- module Errorreporting
32+ module ErrorReporting
3333 module V1beta1
3434 # An API for retrieving and managing error statistics as well as data for
3535 # individual events.
3636 #
37- # @!attribute [r] stub
37+ # @!attribute [r] error_stats_service_stub
3838 # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorStatsService::Stub]
3939 class ErrorStatsServiceApi
40- attr_reader :stub
40+ attr_reader :error_stats_service_stub
4141
4242 # The default address of the service.
4343 SERVICE_ADDRESS = "clouderrorreporting.googleapis.com" . freeze
@@ -126,7 +126,8 @@ def initialize \
126126 require "google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb"
127127
128128 google_api_client = "#{ app_name } /#{ app_version } " \
129- "#{ CODE_GEN_NAME_VERSION } ruby/#{ RUBY_VERSION } " . freeze
129+ "#{ CODE_GEN_NAME_VERSION } gax/#{ Google ::Gax ::VERSION } " \
130+ "ruby/#{ RUBY_VERSION } " . freeze
130131 headers = { :"x-goog-api-client" => google_api_client }
131132 client_config_file = Pathname . new ( __dir__ ) . join (
132133 "error_stats_service_client_config.json"
@@ -143,7 +144,7 @@ def initialize \
143144 kwargs : headers
144145 )
145146 end
146- @stub = Google ::Gax ::Grpc . create_stub (
147+ @error_stats_service_stub = Google ::Gax ::Grpc . create_stub (
147148 service_path ,
148149 port ,
149150 chan_creds : chan_creds ,
@@ -153,15 +154,15 @@ def initialize \
153154 )
154155
155156 @list_group_stats = Google ::Gax . create_api_call (
156- @stub . method ( :list_group_stats ) ,
157+ @error_stats_service_stub . method ( :list_group_stats ) ,
157158 defaults [ "list_group_stats" ]
158159 )
159160 @list_events = Google ::Gax . create_api_call (
160- @stub . method ( :list_events ) ,
161+ @error_stats_service_stub . method ( :list_events ) ,
161162 defaults [ "list_events" ]
162163 )
163164 @delete_events = Google ::Gax . create_api_call (
164- @stub . method ( :delete_events ) ,
165+ @error_stats_service_stub . method ( :delete_events ) ,
165166 defaults [ "delete_events" ]
166167 )
167168 end
@@ -179,17 +180,16 @@ def initialize \
179180 # Example: <code>projects/my-project-123</code>.
180181 # @param group_id [Array<String>]
181182 # [Optional] List all <code>ErrorGroupStats</code> with these IDs.
182- # If not specified, all error group stats with a non-zero error count
183- # for the given selection criteria are returned.
184183 # @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
185184 # [Optional] List only <code>ErrorGroupStats</code> which belong to a service
186185 # context that matches the filter.
187186 # Data for all service contexts is returned if this field is not specified.
188187 # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
189188 # [Required] List data for the given time range.
190- # The service is tuned for retrieving data up to (approximately) 'now'.
191- # Retrieving data for arbitrary time periods in the past can result in
192- # higher response times or in returning incomplete results.
189+ # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
190+ # range are returned, unless the request contains an explicit group_id list.
191+ # If a group_id list is given, also <code>ErrorGroupStats</code> with zero
192+ # occurrences are returned.
193193 # @param timed_count_duration [Google::Protobuf::Duration]
194194 # [Optional] The preferred duration for a single returned +TimedCount+.
195195 # If not set, no timed counts are returned.
@@ -218,9 +218,9 @@ def initialize \
218218 # object.
219219 # @raise [Google::Gax::GaxError] if the RPC is aborted.
220220 # @example
221- # require "google/cloud/errorreporting /v1beta1/error_stats_service_api"
221+ # require "google/cloud/error_reporting /v1beta1/error_stats_service_api"
222222 #
223- # ErrorStatsServiceApi = Google::Cloud::Errorreporting ::V1beta1::ErrorStatsServiceApi
223+ # ErrorStatsServiceApi = Google::Cloud::ErrorReporting ::V1beta1::ErrorStatsServiceApi
224224 # QueryTimeRange = Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange
225225 #
226226 # error_stats_service_api = ErrorStatsServiceApi.new
@@ -280,10 +280,6 @@ def list_group_stats \
280280 # Data for all service contexts is returned if this field is not specified.
281281 # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
282282 # [Optional] List only data for the given time range.
283- # The service is tuned for retrieving data up to (approximately) 'now'.
284- # Retrieving data for arbitrary time periods in the past can result in
285- # higher response times or in returning incomplete results.
286- # Data for the last hour until now is returned if not specified.
287283 # @param page_size [Integer]
288284 # The maximum number of resources contained in the underlying API
289285 # response. If page streaming is performed per-resource, this
@@ -300,9 +296,9 @@ def list_group_stats \
300296 # object.
301297 # @raise [Google::Gax::GaxError] if the RPC is aborted.
302298 # @example
303- # require "google/cloud/errorreporting /v1beta1/error_stats_service_api"
299+ # require "google/cloud/error_reporting /v1beta1/error_stats_service_api"
304300 #
305- # ErrorStatsServiceApi = Google::Cloud::Errorreporting ::V1beta1::ErrorStatsServiceApi
301+ # ErrorStatsServiceApi = Google::Cloud::ErrorReporting ::V1beta1::ErrorStatsServiceApi
306302 #
307303 # error_stats_service_api = ErrorStatsServiceApi.new
308304 # formatted_project_name = ErrorStatsServiceApi.project_path("[PROJECT]")
@@ -351,9 +347,9 @@ def list_events \
351347 # @return [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
352348 # @raise [Google::Gax::GaxError] if the RPC is aborted.
353349 # @example
354- # require "google/cloud/errorreporting /v1beta1/error_stats_service_api"
350+ # require "google/cloud/error_reporting /v1beta1/error_stats_service_api"
355351 #
356- # ErrorStatsServiceApi = Google::Cloud::Errorreporting ::V1beta1::ErrorStatsServiceApi
352+ # ErrorStatsServiceApi = Google::Cloud::ErrorReporting ::V1beta1::ErrorStatsServiceApi
357353 #
358354 # error_stats_service_api = ErrorStatsServiceApi.new
359355 # formatted_project_name = ErrorStatsServiceApi.project_path("[PROJECT]")
0 commit comments