google-cloud-error_reporting-v1beta1 0.1.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/error_reporting/v1beta1.rb +3 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/client.rb +18 -12
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +26 -18
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/client.rb +27 -12
- data/lib/google/cloud/error_reporting/v1beta1/version.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +10 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +3 -4
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +4 -5
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +12 -5
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb +26 -1
- data/proto_docs/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +1 -1
- data/proto_docs/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +8 -6
- data/proto_docs/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +4 -3
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +9 -6
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# The group resource name.
|
28
|
-
# Example: <code>projects/my-project-123/groups/
|
28
|
+
# Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
|
29
29
|
# @!attribute [rw] group_id
|
30
30
|
# @return [::String]
|
31
31
|
# Group IDs are unique for a given project. If the same kind of error
|
@@ -33,6 +33,10 @@ module Google
|
|
33
33
|
# @!attribute [rw] tracking_issues
|
34
34
|
# @return [::Array<::Google::Cloud::ErrorReporting::V1beta1::TrackingIssue>]
|
35
35
|
# Associated tracking issues.
|
36
|
+
# @!attribute [rw] resolution_status
|
37
|
+
# @return [::Google::Cloud::ErrorReporting::V1beta1::ResolutionStatus]
|
38
|
+
# Error group's resolution status.
|
39
|
+
# An unspecified resolution status will be interpreted as OPEN
|
36
40
|
class ErrorGroup
|
37
41
|
include ::Google::Protobuf::MessageExts
|
38
42
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -177,6 +181,27 @@ module Google
|
|
177
181
|
include ::Google::Protobuf::MessageExts
|
178
182
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
179
183
|
end
|
184
|
+
|
185
|
+
# Resolution status of an error group.
|
186
|
+
module ResolutionStatus
|
187
|
+
# Status is unknown. When left unspecified in requests, it is treated like
|
188
|
+
# OPEN.
|
189
|
+
RESOLUTION_STATUS_UNSPECIFIED = 0
|
190
|
+
|
191
|
+
# The error group is not being addressed. This is the default for
|
192
|
+
# new groups. It is also used for errors re-occurring after marked RESOLVED.
|
193
|
+
OPEN = 1
|
194
|
+
|
195
|
+
# Error Group manually acknowledged, it can have an issue link attached.
|
196
|
+
ACKNOWLEDGED = 2
|
197
|
+
|
198
|
+
# Error Group manually resolved, more events for this group are not expected
|
199
|
+
# to occur.
|
200
|
+
RESOLVED = 3
|
201
|
+
|
202
|
+
# The error group is muted and excluded by default on group stats requests.
|
203
|
+
MUTED = 4
|
204
|
+
end
|
180
205
|
end
|
181
206
|
end
|
182
207
|
end
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# A request to return an individual group.
|
25
25
|
# @!attribute [rw] group_name
|
26
26
|
# @return [::String]
|
27
|
-
# The group resource name. Written as
|
27
|
+
# Required. The group resource name. Written as
|
28
28
|
# `projects/{projectID}/groups/{group_name}`. Call
|
29
29
|
# [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
|
30
30
|
# to return a list of groups belonging to this project.
|
@@ -25,11 +25,11 @@ module Google
|
|
25
25
|
# @!attribute [rw] project_name
|
26
26
|
# @return [::String]
|
27
27
|
# Required. The resource name of the Google Cloud Platform project. Written
|
28
|
-
# as
|
29
|
-
#
|
30
|
-
#
|
28
|
+
# as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
|
29
|
+
# and `{projectNumber}` can be found in the
|
30
|
+
# [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
|
31
31
|
#
|
32
|
-
#
|
32
|
+
# Examples: `projects/my-project-123`, `projects/5551234`.
|
33
33
|
# @!attribute [rw] group_id
|
34
34
|
# @return [::Array<::String>]
|
35
35
|
# Optional. List all <code>ErrorGroupStats</code> with these IDs.
|
@@ -181,9 +181,10 @@ module Google
|
|
181
181
|
# @!attribute [rw] project_name
|
182
182
|
# @return [::String]
|
183
183
|
# Required. The resource name of the Google Cloud Platform project. Written
|
184
|
-
# as `projects
|
184
|
+
# as `projects/{projectID}`, where `{projectID}` is the
|
185
185
|
# [Google Cloud Platform project
|
186
186
|
# ID](https://support.google.com/cloud/answer/6158840).
|
187
|
+
#
|
187
188
|
# Example: `projects/my-project-123`.
|
188
189
|
# @!attribute [rw] group_id
|
189
190
|
# @return [::String]
|
@@ -287,9 +288,10 @@ module Google
|
|
287
288
|
# @!attribute [rw] project_name
|
288
289
|
# @return [::String]
|
289
290
|
# Required. The resource name of the Google Cloud Platform project. Written
|
290
|
-
# as `projects
|
291
|
+
# as `projects/{projectID}`, where `{projectID}` is the
|
291
292
|
# [Google Cloud Platform project
|
292
293
|
# ID](https://support.google.com/cloud/answer/6158840).
|
294
|
+
#
|
293
295
|
# Example: `projects/my-project-123`.
|
294
296
|
class DeleteEventsRequest
|
295
297
|
include ::Google::Protobuf::MessageExts
|
@@ -25,10 +25,11 @@ module Google
|
|
25
25
|
# @!attribute [rw] project_name
|
26
26
|
# @return [::String]
|
27
27
|
# Required. The resource name of the Google Cloud Platform project. Written
|
28
|
-
# as `projects
|
28
|
+
# as `projects/{projectId}`, where `{projectId}` is the
|
29
29
|
# [Google Cloud Platform project
|
30
|
-
# ID](https://support.google.com/cloud/answer/6158840).
|
31
|
-
#
|
30
|
+
# ID](https://support.google.com/cloud/answer/6158840).
|
31
|
+
#
|
32
|
+
# Example: // `projects/my-project-123`.
|
32
33
|
# @!attribute [rw] event
|
33
34
|
# @return [::Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent]
|
34
35
|
# Required. The error event to be reported.
|
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-error_reporting-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.25.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.25.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,6 +152,9 @@ dependencies:
|
|
152
152
|
version: '0.9'
|
153
153
|
description: The Error Reporting API provides a simple endpoint to report errors from
|
154
154
|
your running service, and read access to error groups and their associated errors.
|
155
|
+
Note that google-cloud-error_reporting-v1beta1 is a version-specific client library.
|
156
|
+
For most uses, we recommend installing the main client library google-cloud-error_reporting
|
157
|
+
instead. See the readme for more details.
|
155
158
|
email: googleapis-packages@google.com
|
156
159
|
executables: []
|
157
160
|
extensions: []
|
@@ -204,14 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
207
|
requirements:
|
205
208
|
- - ">="
|
206
209
|
- !ruby/object:Gem::Version
|
207
|
-
version: '2.
|
210
|
+
version: '2.5'
|
208
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
212
|
requirements:
|
210
213
|
- - ">="
|
211
214
|
- !ruby/object:Gem::Version
|
212
215
|
version: '0'
|
213
216
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
217
|
+
rubygems_version: 3.2.13
|
215
218
|
signing_key:
|
216
219
|
specification_version: 4
|
217
220
|
summary: API Client library for the Cloud Error Reporting V1beta1 API
|