google-cloud-error_reporting 0.34.0 → 0.34.1
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 +8 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/common.rb +7 -7
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +2 -2
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +26 -25
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +29 -9
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb +8 -8
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client_config.json +1 -1
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb +27 -29
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client_config.json +1 -1
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb +7 -7
- data/lib/google/cloud/error_reporting/version.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +3 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +2 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +3 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +2 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +3 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +7 -6
- 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: 47f9ed0e886818326d3ff588fff56599ba775eff08a2e041e486d1958c21670e
|
4
|
+
data.tar.gz: 417026c64e8a4adc7ad605e9900ef2ef72787714a0e7c4d26ea670a5b9f14649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4129c226180413de968acf635629b034e900984ffd2a26d478c6d29df66a6fb54cfba8e6d66519e27b217b92c61f29f98d7b4ecebe6a8e6e8454251d0b0394b9
|
7
|
+
data.tar.gz: 7bc01104cc843dbf908b68c5e07440d1e8447ec39fcf325a537d88d07db72535287c2dd1d55521906bf49f448f2441d378a61394024185147126653a46f43212
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.34.1 / 2019-12-20
|
4
|
+
|
5
|
+
#### Bug Fixes
|
6
|
+
|
7
|
+
* Synchronize low-level interface to match the backend API
|
8
|
+
* Rename ErrorGroupServiceClient.group_path helper to error_group_path.
|
9
|
+
* Make time_range an optional argument to ErrorGroupServiceClient#list_group_stats
|
10
|
+
|
3
11
|
### 0.34.0 / 2019-11-11
|
4
12
|
|
5
13
|
#### Features
|
@@ -70,6 +70,8 @@ module Google
|
|
70
70
|
# @return [String]
|
71
71
|
# Represents the source code version that the developer provided,
|
72
72
|
# which could represent a version label or a Git SHA-1 hash, for example.
|
73
|
+
# For App Engine standard environment, the version is set to the version of
|
74
|
+
# the app.
|
73
75
|
# @!attribute [rw] resource_type
|
74
76
|
# @return [String]
|
75
77
|
# Type of the MonitoredResource. List of possible values:
|
@@ -103,8 +105,7 @@ module Google
|
|
103
105
|
# report the error, usually the place where it was logged.
|
104
106
|
# For a logged exception this would be the source line where the
|
105
107
|
# exception is logged, usually close to the place where it was
|
106
|
-
# caught.
|
107
|
-
# which describes the source line where the exception was thrown.
|
108
|
+
# caught.
|
108
109
|
class ErrorContext; end
|
109
110
|
|
110
111
|
# HTTP request data that is related to a reported error.
|
@@ -134,11 +135,10 @@ module Google
|
|
134
135
|
# in the error report.
|
135
136
|
class HttpRequestContext; end
|
136
137
|
|
137
|
-
# Indicates a location in the source code of the service for which
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
# Engine logs. All fields are optional.
|
138
|
+
# Indicates a location in the source code of the service for which errors are
|
139
|
+
# reported. `functionName` must be provided by the application when reporting
|
140
|
+
# an error, unless the error report contains a `message` with a supported
|
141
|
+
# exception stack trace. All fields are optional for the later case.
|
142
142
|
# @!attribute [rw] file_path
|
143
143
|
# @return [String]
|
144
144
|
# The source code filename, which can include a truncated relative
|
@@ -20,7 +20,7 @@ module Google
|
|
20
20
|
# A request to return an individual group.
|
21
21
|
# @!attribute [rw] group_name
|
22
22
|
# @return [String]
|
23
|
-
#
|
23
|
+
# Required. The group resource name. Written as
|
24
24
|
# <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
|
25
25
|
# Call
|
26
26
|
# <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
# A request to replace the existing data for the given group.
|
34
34
|
# @!attribute [rw] group
|
35
35
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup]
|
36
|
-
#
|
36
|
+
# Required. The group which replaces the resource on the server.
|
37
37
|
class UpdateGroupRequest; end
|
38
38
|
end
|
39
39
|
end
|
@@ -20,7 +20,7 @@ module Google
|
|
20
20
|
# Specifies a set of `ErrorGroupStats` to return.
|
21
21
|
# @!attribute [rw] project_name
|
22
22
|
# @return [String]
|
23
|
-
#
|
23
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
24
24
|
# as <code>projects/</code> plus the
|
25
25
|
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
|
26
26
|
# Platform project ID</a>.
|
@@ -28,44 +28,45 @@ module Google
|
|
28
28
|
# Example: <code>projects/my-project-123</code>.
|
29
29
|
# @!attribute [rw] group_id
|
30
30
|
# @return [Array<String>]
|
31
|
-
#
|
31
|
+
# Optional. List all <code>ErrorGroupStats</code> with these IDs.
|
32
32
|
# @!attribute [rw] service_filter
|
33
33
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
|
34
|
-
#
|
34
|
+
# Optional. List only <code>ErrorGroupStats</code> which belong to a service
|
35
35
|
# context that matches the filter.
|
36
36
|
# Data for all service contexts is returned if this field is not specified.
|
37
37
|
# @!attribute [rw] time_range
|
38
38
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
|
39
|
-
#
|
40
|
-
# If not set a default time range is used. The field
|
41
|
-
# in the response will specify the beginning
|
39
|
+
# Optional. List data for the given time range.
|
40
|
+
# If not set, a default time range is used. The field
|
41
|
+
# <code>time_range_begin</code> in the response will specify the beginning
|
42
|
+
# of this time range.
|
42
43
|
# Only <code>ErrorGroupStats</code> with a non-zero count in the given time
|
43
|
-
# range are returned, unless the request contains an explicit
|
44
|
-
# If a group_id list is given, also
|
45
|
-
# occurrences are returned.
|
44
|
+
# range are returned, unless the request contains an explicit
|
45
|
+
# <code>group_id</code> list. If a <code>group_id</code> list is given, also
|
46
|
+
# <code>ErrorGroupStats</code> with zero occurrences are returned.
|
46
47
|
# @!attribute [rw] timed_count_duration
|
47
48
|
# @return [Google::Protobuf::Duration]
|
48
|
-
#
|
49
|
+
# Optional. The preferred duration for a single returned `TimedCount`.
|
49
50
|
# If not set, no timed counts are returned.
|
50
51
|
# @!attribute [rw] alignment
|
51
52
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::TimedCountAlignment]
|
52
|
-
#
|
53
|
+
# Optional. The alignment of the timed counts to be returned.
|
53
54
|
# Default is `ALIGNMENT_EQUAL_AT_END`.
|
54
55
|
# @!attribute [rw] alignment_time
|
55
56
|
# @return [Google::Protobuf::Timestamp]
|
56
|
-
#
|
57
|
+
# Optional. Time where the timed counts shall be aligned if rounded
|
57
58
|
# alignment is chosen. Default is 00:00 UTC.
|
58
59
|
# @!attribute [rw] order
|
59
60
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupOrder]
|
60
|
-
#
|
61
|
+
# Optional. The sort order in which the results are returned.
|
61
62
|
# Default is `COUNT_DESC`.
|
62
63
|
# @!attribute [rw] page_size
|
63
64
|
# @return [Integer]
|
64
|
-
#
|
65
|
+
# Optional. The maximum number of results to return per response.
|
65
66
|
# Default is 20.
|
66
67
|
# @!attribute [rw] page_token
|
67
68
|
# @return [String]
|
68
|
-
#
|
69
|
+
# Optional. A `next_page_token` provided by a previous response. To view
|
69
70
|
# additional results, pass this token along with the identical query
|
70
71
|
# parameters as the first request.
|
71
72
|
class ListGroupStatsRequest; end
|
@@ -163,30 +164,30 @@ module Google
|
|
163
164
|
# Specifies a set of error events to return.
|
164
165
|
# @!attribute [rw] project_name
|
165
166
|
# @return [String]
|
166
|
-
#
|
167
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
167
168
|
# as `projects/` plus the
|
168
169
|
# [Google Cloud Platform project
|
169
170
|
# ID](https://support.google.com/cloud/answer/6158840).
|
170
171
|
# Example: `projects/my-project-123`.
|
171
172
|
# @!attribute [rw] group_id
|
172
173
|
# @return [String]
|
173
|
-
#
|
174
|
+
# Required. The group for which events shall be returned.
|
174
175
|
# @!attribute [rw] service_filter
|
175
176
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
|
176
|
-
#
|
177
|
+
# Optional. List only ErrorGroups which belong to a service context that
|
177
178
|
# matches the filter.
|
178
179
|
# Data for all service contexts is returned if this field is not specified.
|
179
180
|
# @!attribute [rw] time_range
|
180
181
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
|
181
|
-
#
|
182
|
+
# Optional. List only data for the given time range.
|
182
183
|
# If not set a default time range is used. The field time_range_begin
|
183
184
|
# in the response will specify the beginning of this time range.
|
184
185
|
# @!attribute [rw] page_size
|
185
186
|
# @return [Integer]
|
186
|
-
#
|
187
|
+
# Optional. The maximum number of results to return per response.
|
187
188
|
# @!attribute [rw] page_token
|
188
189
|
# @return [String]
|
189
|
-
#
|
190
|
+
# Optional. A `next_page_token` provided by a previous response.
|
190
191
|
class ListEventsRequest; end
|
191
192
|
|
192
193
|
# Contains a set of requested error events.
|
@@ -242,22 +243,22 @@ module Google
|
|
242
243
|
# If a field is unset or empty, it matches arbitrary values.
|
243
244
|
# @!attribute [rw] service
|
244
245
|
# @return [String]
|
245
|
-
#
|
246
|
+
# Optional. The exact value to match against
|
246
247
|
# [`ServiceContext.service`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
|
247
248
|
# @!attribute [rw] version
|
248
249
|
# @return [String]
|
249
|
-
#
|
250
|
+
# Optional. The exact value to match against
|
250
251
|
# [`ServiceContext.version`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
|
251
252
|
# @!attribute [rw] resource_type
|
252
253
|
# @return [String]
|
253
|
-
#
|
254
|
+
# Optional. The exact value to match against
|
254
255
|
# [`ServiceContext.resource_type`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
|
255
256
|
class ServiceContextFilter; end
|
256
257
|
|
257
258
|
# Deletes all events in the project.
|
258
259
|
# @!attribute [rw] project_name
|
259
260
|
# @return [String]
|
260
|
-
#
|
261
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
261
262
|
# as `projects/` plus the
|
262
263
|
# [Google Cloud Platform project
|
263
264
|
# ID](https://support.google.com/cloud/answer/6158840).
|
@@ -20,14 +20,14 @@ module Google
|
|
20
20
|
# A request for reporting an individual error event.
|
21
21
|
# @!attribute [rw] project_name
|
22
22
|
# @return [String]
|
23
|
-
#
|
23
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
24
24
|
# as `projects/` plus the
|
25
25
|
# [Google Cloud Platform project
|
26
26
|
# ID](https://support.google.com/cloud/answer/6158840). Example:
|
27
27
|
# `projects/my-project-123`.
|
28
28
|
# @!attribute [rw] event
|
29
29
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent]
|
30
|
-
#
|
30
|
+
# Required. The error event to be reported.
|
31
31
|
class ReportErrorEventRequest; end
|
32
32
|
|
33
33
|
# Response for reporting an individual error event.
|
@@ -37,21 +37,41 @@ module Google
|
|
37
37
|
# An error event which is reported to the Error Reporting system.
|
38
38
|
# @!attribute [rw] event_time
|
39
39
|
# @return [Google::Protobuf::Timestamp]
|
40
|
-
#
|
40
|
+
# Optional. Time when the event occurred.
|
41
41
|
# If not provided, the time when the event was received by the
|
42
42
|
# Error Reporting system will be used.
|
43
43
|
# @!attribute [rw] service_context
|
44
44
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContext]
|
45
|
-
#
|
45
|
+
# Required. The service context in which this error has occurred.
|
46
46
|
# @!attribute [rw] message
|
47
47
|
# @return [String]
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
48
|
+
# Required. The error message.
|
49
|
+
# If no `context.reportLocation` is provided, the message must contain a
|
50
|
+
# header (typically consisting of the exception type name and an error
|
51
|
+
# message) and an exception stack trace in one of the supported programming
|
52
|
+
# languages and formats.
|
53
|
+
# Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
|
54
|
+
# Supported stack trace formats are:
|
55
|
+
#
|
56
|
+
# * **Java**: Must be the return value of
|
57
|
+
# [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
|
58
|
+
# * **Python**: Must be the return value of
|
59
|
+
# [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
|
60
|
+
# * **JavaScript**: Must be the value of
|
61
|
+
# [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
|
62
|
+
# by V8.
|
63
|
+
# * **Ruby**: Must contain frames returned by
|
64
|
+
# [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
|
65
|
+
# * **C#**: Must be the return value of
|
66
|
+
# [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
|
67
|
+
# * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
|
68
|
+
# and contain the result of
|
69
|
+
# [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
|
70
|
+
# * **Go**: Must be the return value of
|
71
|
+
# [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
|
52
72
|
# @!attribute [rw] context
|
53
73
|
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorContext]
|
54
|
-
#
|
74
|
+
# Optional. A description of the context in which the error occurred.
|
55
75
|
class ReportedErrorEvent; end
|
56
76
|
end
|
57
77
|
end
|
@@ -59,18 +59,18 @@ module Google
|
|
59
59
|
].freeze
|
60
60
|
|
61
61
|
|
62
|
-
|
62
|
+
ERROR_GROUP_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
63
63
|
"projects/{project}/groups/{group}"
|
64
64
|
)
|
65
65
|
|
66
|
-
private_constant :
|
66
|
+
private_constant :ERROR_GROUP_PATH_TEMPLATE
|
67
67
|
|
68
|
-
# Returns a fully-qualified
|
68
|
+
# Returns a fully-qualified error_group resource name string.
|
69
69
|
# @param project [String]
|
70
70
|
# @param group [String]
|
71
71
|
# @return [String]
|
72
|
-
def self.
|
73
|
-
|
72
|
+
def self.error_group_path project, group
|
73
|
+
ERROR_GROUP_PATH_TEMPLATE.render(
|
74
74
|
:"project" => project,
|
75
75
|
:"group" => group
|
76
76
|
)
|
@@ -207,7 +207,7 @@ module Google
|
|
207
207
|
# Get the specified group.
|
208
208
|
#
|
209
209
|
# @param group_name [String]
|
210
|
-
#
|
210
|
+
# Required. The group resource name. Written as
|
211
211
|
# <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
|
212
212
|
# Call
|
213
213
|
# <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
|
@@ -227,7 +227,7 @@ module Google
|
|
227
227
|
# require "google/cloud/error_reporting"
|
228
228
|
#
|
229
229
|
# error_group_client = Google::Cloud::ErrorReporting::ErrorGroup.new(version: :v1beta1)
|
230
|
-
# formatted_group_name = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient.
|
230
|
+
# formatted_group_name = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient.error_group_path("[PROJECT]", "[GROUP]")
|
231
231
|
# response = error_group_client.get_group(formatted_group_name)
|
232
232
|
|
233
233
|
def get_group \
|
@@ -245,7 +245,7 @@ module Google
|
|
245
245
|
# Fails if the group does not exist.
|
246
246
|
#
|
247
247
|
# @param group [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup | Hash]
|
248
|
-
#
|
248
|
+
# Required. The group which replaces the resource on the server.
|
249
249
|
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup`
|
250
250
|
# can also be provided.
|
251
251
|
# @param options [Google::Gax::CallOptions]
|
@@ -228,45 +228,46 @@ module Google
|
|
228
228
|
# Lists the specified groups.
|
229
229
|
#
|
230
230
|
# @param project_name [String]
|
231
|
-
#
|
231
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
232
232
|
# as <code>projects/</code> plus the
|
233
233
|
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
|
234
234
|
# Platform project ID</a>.
|
235
235
|
#
|
236
236
|
# Example: <code>projects/my-project-123</code>.
|
237
|
-
# @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange | Hash]
|
238
|
-
# [Optional] List data for the given time range.
|
239
|
-
# If not set a default time range is used. The field time_range_begin
|
240
|
-
# in the response will specify the beginning of this time range.
|
241
|
-
# Only <code>ErrorGroupStats</code> with a non-zero count in the given time
|
242
|
-
# range are returned, unless the request contains an explicit group_id list.
|
243
|
-
# If a group_id list is given, also <code>ErrorGroupStats</code> with zero
|
244
|
-
# occurrences are returned.
|
245
|
-
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange`
|
246
|
-
# can also be provided.
|
247
237
|
# @param group_id [Array<String>]
|
248
|
-
#
|
238
|
+
# Optional. List all <code>ErrorGroupStats</code> with these IDs.
|
249
239
|
# @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter | Hash]
|
250
|
-
#
|
240
|
+
# Optional. List only <code>ErrorGroupStats</code> which belong to a service
|
251
241
|
# context that matches the filter.
|
252
242
|
# Data for all service contexts is returned if this field is not specified.
|
253
243
|
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter`
|
254
244
|
# can also be provided.
|
245
|
+
# @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange | Hash]
|
246
|
+
# Optional. List data for the given time range.
|
247
|
+
# If not set, a default time range is used. The field
|
248
|
+
# <code>time_range_begin</code> in the response will specify the beginning
|
249
|
+
# of this time range.
|
250
|
+
# Only <code>ErrorGroupStats</code> with a non-zero count in the given time
|
251
|
+
# range are returned, unless the request contains an explicit
|
252
|
+
# <code>group_id</code> list. If a <code>group_id</code> list is given, also
|
253
|
+
# <code>ErrorGroupStats</code> with zero occurrences are returned.
|
254
|
+
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange`
|
255
|
+
# can also be provided.
|
255
256
|
# @param timed_count_duration [Google::Protobuf::Duration | Hash]
|
256
|
-
#
|
257
|
+
# Optional. The preferred duration for a single returned `TimedCount`.
|
257
258
|
# If not set, no timed counts are returned.
|
258
259
|
# A hash of the same form as `Google::Protobuf::Duration`
|
259
260
|
# can also be provided.
|
260
261
|
# @param alignment [Google::Devtools::Clouderrorreporting::V1beta1::TimedCountAlignment]
|
261
|
-
#
|
262
|
+
# Optional. The alignment of the timed counts to be returned.
|
262
263
|
# Default is `ALIGNMENT_EQUAL_AT_END`.
|
263
264
|
# @param alignment_time [Google::Protobuf::Timestamp | Hash]
|
264
|
-
#
|
265
|
+
# Optional. Time where the timed counts shall be aligned if rounded
|
265
266
|
# alignment is chosen. Default is 00:00 UTC.
|
266
267
|
# A hash of the same form as `Google::Protobuf::Timestamp`
|
267
268
|
# can also be provided.
|
268
269
|
# @param order [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupOrder]
|
269
|
-
#
|
270
|
+
# Optional. The sort order in which the results are returned.
|
270
271
|
# Default is `COUNT_DESC`.
|
271
272
|
# @param page_size [Integer]
|
272
273
|
# The maximum number of resources contained in the underlying API
|
@@ -292,16 +293,13 @@ module Google
|
|
292
293
|
# error_stats_client = Google::Cloud::ErrorReporting::ErrorStats.new(version: :v1beta1)
|
293
294
|
# formatted_project_name = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient.project_path("[PROJECT]")
|
294
295
|
#
|
295
|
-
# # TODO: Initialize `time_range`:
|
296
|
-
# time_range = {}
|
297
|
-
#
|
298
296
|
# # Iterate over all results.
|
299
|
-
# error_stats_client.list_group_stats(formatted_project_name
|
297
|
+
# error_stats_client.list_group_stats(formatted_project_name).each do |element|
|
300
298
|
# # Process element.
|
301
299
|
# end
|
302
300
|
#
|
303
301
|
# # Or iterate over results one page at a time.
|
304
|
-
# error_stats_client.list_group_stats(formatted_project_name
|
302
|
+
# error_stats_client.list_group_stats(formatted_project_name).each_page do |page|
|
305
303
|
# # Process each page at a time.
|
306
304
|
# page.each do |element|
|
307
305
|
# # Process element.
|
@@ -310,9 +308,9 @@ module Google
|
|
310
308
|
|
311
309
|
def list_group_stats \
|
312
310
|
project_name,
|
313
|
-
time_range,
|
314
311
|
group_id: nil,
|
315
312
|
service_filter: nil,
|
313
|
+
time_range: nil,
|
316
314
|
timed_count_duration: nil,
|
317
315
|
alignment: nil,
|
318
316
|
alignment_time: nil,
|
@@ -322,9 +320,9 @@ module Google
|
|
322
320
|
&block
|
323
321
|
req = {
|
324
322
|
project_name: project_name,
|
325
|
-
time_range: time_range,
|
326
323
|
group_id: group_id,
|
327
324
|
service_filter: service_filter,
|
325
|
+
time_range: time_range,
|
328
326
|
timed_count_duration: timed_count_duration,
|
329
327
|
alignment: alignment,
|
330
328
|
alignment_time: alignment_time,
|
@@ -338,21 +336,21 @@ module Google
|
|
338
336
|
# Lists the specified events.
|
339
337
|
#
|
340
338
|
# @param project_name [String]
|
341
|
-
#
|
339
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
342
340
|
# as `projects/` plus the
|
343
341
|
# [Google Cloud Platform project
|
344
342
|
# ID](https://support.google.com/cloud/answer/6158840).
|
345
343
|
# Example: `projects/my-project-123`.
|
346
344
|
# @param group_id [String]
|
347
|
-
#
|
345
|
+
# Required. The group for which events shall be returned.
|
348
346
|
# @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter | Hash]
|
349
|
-
#
|
347
|
+
# Optional. List only ErrorGroups which belong to a service context that
|
350
348
|
# matches the filter.
|
351
349
|
# Data for all service contexts is returned if this field is not specified.
|
352
350
|
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter`
|
353
351
|
# can also be provided.
|
354
352
|
# @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange | Hash]
|
355
|
-
#
|
353
|
+
# Optional. List only data for the given time range.
|
356
354
|
# If not set a default time range is used. The field time_range_begin
|
357
355
|
# in the response will specify the beginning of this time range.
|
358
356
|
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange`
|
@@ -419,7 +417,7 @@ module Google
|
|
419
417
|
# Deletes all error events of a given project.
|
420
418
|
#
|
421
419
|
# @param project_name [String]
|
422
|
-
#
|
420
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
423
421
|
# as `projects/` plus the
|
424
422
|
# [Google Cloud Platform project
|
425
423
|
# ID](https://support.google.com/cloud/answer/6158840).
|
@@ -196,22 +196,22 @@ module Google
|
|
196
196
|
|
197
197
|
# Report an individual error event.
|
198
198
|
#
|
199
|
-
# This endpoint accepts
|
200
|
-
#
|
201
|
-
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
|
199
|
+
# This endpoint accepts **either** an OAuth token,
|
200
|
+
# **or** an [API key](https://support.google.com/cloud/answer/6158862)
|
202
201
|
# for authentication. To use an API key, append it to the URL as the value of
|
203
202
|
# a `key` parameter. For example:
|
204
|
-
#
|
205
|
-
#
|
203
|
+
#
|
204
|
+
# `POST
|
205
|
+
# https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
|
206
206
|
#
|
207
207
|
# @param project_name [String]
|
208
|
-
#
|
208
|
+
# Required. The resource name of the Google Cloud Platform project. Written
|
209
209
|
# as `projects/` plus the
|
210
210
|
# [Google Cloud Platform project
|
211
211
|
# ID](https://support.google.com/cloud/answer/6158840). Example:
|
212
212
|
# `projects/my-project-123`.
|
213
213
|
# @param event [Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent | Hash]
|
214
|
-
#
|
214
|
+
# Required. The error event to be reported.
|
215
215
|
# A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent`
|
216
216
|
# can also be provided.
|
217
217
|
# @param options [Google::Gax::CallOptions]
|
@@ -5,7 +5,7 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/
|
8
|
+
require 'google/api/resource_pb'
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
9
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
13
|
add_message "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest" do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto for package 'google.devtools.clouderrorreporting.v1beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
9
12
|
require 'google/protobuf/duration_pb'
|
10
13
|
require 'google/protobuf/timestamp_pb'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto for package 'google.devtools.clouderrorreporting.v1beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
9
12
|
require 'google/protobuf/timestamp_pb'
|
10
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto for package 'google.devtools.clouderrorreporting.v1beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -36,13 +37,13 @@ module Google
|
|
36
37
|
|
37
38
|
# Report an individual error event.
|
38
39
|
#
|
39
|
-
# This endpoint accepts
|
40
|
-
#
|
41
|
-
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
|
40
|
+
# This endpoint accepts **either** an OAuth token,
|
41
|
+
# **or** an [API key](https://support.google.com/cloud/answer/6158862)
|
42
42
|
# for authentication. To use an API key, append it to the URL as the value of
|
43
43
|
# a `key` parameter. For example:
|
44
|
-
#
|
45
|
-
#
|
44
|
+
#
|
45
|
+
# `POST
|
46
|
+
# https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
|
46
47
|
rpc :ReportErrorEvent, ReportErrorEventRequest, ReportErrorEventResponse
|
47
48
|
end
|
48
49
|
|
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.34.
|
4
|
+
version: 0.34.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|