google-cloud-error_reporting-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-error_reporting-v1beta1.rb +21 -0
  7. data/lib/google/cloud/error_reporting/v1beta1.rb +37 -0
  8. data/lib/google/cloud/error_reporting/v1beta1/error_group_service.rb +49 -0
  9. data/lib/google/cloud/error_reporting/v1beta1/error_group_service/client.rb +456 -0
  10. data/lib/google/cloud/error_reporting/v1beta1/error_group_service/credentials.rb +51 -0
  11. data/lib/google/cloud/error_reporting/v1beta1/error_group_service/paths.rb +50 -0
  12. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service.rb +50 -0
  13. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +587 -0
  14. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/credentials.rb +51 -0
  15. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/paths.rb +47 -0
  16. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service.rb +49 -0
  17. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/client.rb +385 -0
  18. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/credentials.rb +51 -0
  19. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/paths.rb +47 -0
  20. data/lib/google/cloud/error_reporting/v1beta1/version.rb +28 -0
  21. data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +65 -0
  22. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +31 -0
  23. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +49 -0
  24. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +117 -0
  25. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +51 -0
  26. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +39 -0
  27. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +54 -0
  28. data/proto_docs/README.md +4 -0
  29. data/proto_docs/google/api/field_behavior.rb +59 -0
  30. data/proto_docs/google/api/resource.rb +247 -0
  31. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb +183 -0
  32. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +49 -0
  33. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +348 -0
  34. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +92 -0
  35. data/proto_docs/google/protobuf/duration.rb +98 -0
  36. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  37. metadata +218 -0
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ErrorReporting
23
+ module V1beta1
24
+ # A request to return an individual group.
25
+ # @!attribute [rw] group_name
26
+ # @return [::String]
27
+ # The group resource name. Written as
28
+ # `projects/{projectID}/groups/{group_name}`. Call
29
+ # [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
30
+ # to return a list of groups belonging to this project.
31
+ #
32
+ # Example: `projects/my-project-123/groups/my-group`
33
+ class GetGroupRequest
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+
38
+ # A request to replace the existing data for the given group.
39
+ # @!attribute [rw] group
40
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup]
41
+ # Required. The group which replaces the resource on the server.
42
+ class UpdateGroupRequest
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,348 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ErrorReporting
23
+ module V1beta1
24
+ # Specifies a set of `ErrorGroupStats` to return.
25
+ # @!attribute [rw] project_name
26
+ # @return [::String]
27
+ # Required. The resource name of the Google Cloud Platform project. Written
28
+ # as <code>projects/</code> plus the
29
+ # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
30
+ # Platform project ID</a>.
31
+ #
32
+ # Example: <code>projects/my-project-123</code>.
33
+ # @!attribute [rw] group_id
34
+ # @return [::Array<::String>]
35
+ # Optional. List all <code>ErrorGroupStats</code> with these IDs.
36
+ # @!attribute [rw] service_filter
37
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ServiceContextFilter]
38
+ # Optional. List only <code>ErrorGroupStats</code> which belong to a service
39
+ # context that matches the filter.
40
+ # Data for all service contexts is returned if this field is not specified.
41
+ # @!attribute [rw] time_range
42
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::QueryTimeRange]
43
+ # Optional. List data for the given time range.
44
+ # If not set, a default time range is used. The field
45
+ # <code>time_range_begin</code> in the response will specify the beginning
46
+ # of this time range.
47
+ # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
48
+ # range are returned, unless the request contains an explicit
49
+ # <code>group_id</code> list. If a <code>group_id</code> list is given, also
50
+ # <code>ErrorGroupStats</code> with zero occurrences are returned.
51
+ # @!attribute [rw] timed_count_duration
52
+ # @return [::Google::Protobuf::Duration]
53
+ # Optional. The preferred duration for a single returned `TimedCount`.
54
+ # If not set, no timed counts are returned.
55
+ # @!attribute [rw] alignment
56
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::TimedCountAlignment]
57
+ # Optional. The alignment of the timed counts to be returned.
58
+ # Default is `ALIGNMENT_EQUAL_AT_END`.
59
+ # @!attribute [rw] alignment_time
60
+ # @return [::Google::Protobuf::Timestamp]
61
+ # Optional. Time where the timed counts shall be aligned if rounded
62
+ # alignment is chosen. Default is 00:00 UTC.
63
+ # @!attribute [rw] order
64
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupOrder]
65
+ # Optional. The sort order in which the results are returned.
66
+ # Default is `COUNT_DESC`.
67
+ # @!attribute [rw] page_size
68
+ # @return [::Integer]
69
+ # Optional. The maximum number of results to return per response.
70
+ # Default is 20.
71
+ # @!attribute [rw] page_token
72
+ # @return [::String]
73
+ # Optional. A `next_page_token` provided by a previous response. To view
74
+ # additional results, pass this token along with the identical query
75
+ # parameters as the first request.
76
+ class ListGroupStatsRequest
77
+ include ::Google::Protobuf::MessageExts
78
+ extend ::Google::Protobuf::MessageExts::ClassMethods
79
+ end
80
+
81
+ # Contains a set of requested error group stats.
82
+ # @!attribute [rw] error_group_stats
83
+ # @return [::Array<::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupStats>]
84
+ # The error group stats which match the given request.
85
+ # @!attribute [rw] next_page_token
86
+ # @return [::String]
87
+ # If non-empty, more results are available.
88
+ # Pass this token, along with the same query parameters as the first
89
+ # request, to view the next page of results.
90
+ # @!attribute [rw] time_range_begin
91
+ # @return [::Google::Protobuf::Timestamp]
92
+ # The timestamp specifies the start time to which the request was restricted.
93
+ # The start time is set based on the requested time range. It may be adjusted
94
+ # to a later time if a project has exceeded the storage quota and older data
95
+ # has been deleted.
96
+ class ListGroupStatsResponse
97
+ include ::Google::Protobuf::MessageExts
98
+ extend ::Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+
101
+ # Data extracted for a specific group based on certain filter criteria,
102
+ # such as a given time period and/or service filter.
103
+ # @!attribute [rw] group
104
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup]
105
+ # Group data that is independent of the filter criteria.
106
+ # @!attribute [rw] count
107
+ # @return [::Integer]
108
+ # Approximate total number of events in the given group that match
109
+ # the filter criteria.
110
+ # @!attribute [rw] affected_users_count
111
+ # @return [::Integer]
112
+ # Approximate number of affected users in the given group that
113
+ # match the filter criteria.
114
+ # Users are distinguished by data in the `ErrorContext` of the
115
+ # individual error events, such as their login name or their remote
116
+ # IP address in case of HTTP requests.
117
+ # The number of affected users can be zero even if the number of
118
+ # errors is non-zero if no data was provided from which the
119
+ # affected user could be deduced.
120
+ # Users are counted based on data in the request
121
+ # context that was provided in the error report. If more users are
122
+ # implicitly affected, such as due to a crash of the whole service,
123
+ # this is not reflected here.
124
+ # @!attribute [rw] timed_counts
125
+ # @return [::Array<::Google::Cloud::ErrorReporting::V1beta1::TimedCount>]
126
+ # Approximate number of occurrences over time.
127
+ # Timed counts returned by ListGroups are guaranteed to be:
128
+ #
129
+ # - Inside the requested time interval
130
+ # - Non-overlapping, and
131
+ # - Ordered by ascending time.
132
+ # @!attribute [rw] first_seen_time
133
+ # @return [::Google::Protobuf::Timestamp]
134
+ # Approximate first occurrence that was ever seen for this group
135
+ # and which matches the given filter criteria, ignoring the
136
+ # time_range that was specified in the request.
137
+ # @!attribute [rw] last_seen_time
138
+ # @return [::Google::Protobuf::Timestamp]
139
+ # Approximate last occurrence that was ever seen for this group and
140
+ # which matches the given filter criteria, ignoring the time_range
141
+ # that was specified in the request.
142
+ # @!attribute [rw] affected_services
143
+ # @return [::Array<::Google::Cloud::ErrorReporting::V1beta1::ServiceContext>]
144
+ # Service contexts with a non-zero error count for the given filter
145
+ # criteria. This list can be truncated if multiple services are affected.
146
+ # Refer to `num_affected_services` for the total count.
147
+ # @!attribute [rw] num_affected_services
148
+ # @return [::Integer]
149
+ # The total number of services with a non-zero error count for the given
150
+ # filter criteria.
151
+ # @!attribute [rw] representative
152
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ErrorEvent]
153
+ # An arbitrary event that is chosen as representative for the whole group.
154
+ # The representative event is intended to be used as a quick preview for
155
+ # the whole group. Events in the group are usually sufficiently similar
156
+ # to each other such that showing an arbitrary representative provides
157
+ # insight into the characteristics of the group as a whole.
158
+ class ErrorGroupStats
159
+ include ::Google::Protobuf::MessageExts
160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
161
+ end
162
+
163
+ # The number of errors in a given time period.
164
+ # All numbers are approximate since the error events are sampled
165
+ # before counting them.
166
+ # @!attribute [rw] count
167
+ # @return [::Integer]
168
+ # Approximate number of occurrences in the given time period.
169
+ # @!attribute [rw] start_time
170
+ # @return [::Google::Protobuf::Timestamp]
171
+ # Start of the time period to which `count` refers (included).
172
+ # @!attribute [rw] end_time
173
+ # @return [::Google::Protobuf::Timestamp]
174
+ # End of the time period to which `count` refers (excluded).
175
+ class TimedCount
176
+ include ::Google::Protobuf::MessageExts
177
+ extend ::Google::Protobuf::MessageExts::ClassMethods
178
+ end
179
+
180
+ # Specifies a set of error events to return.
181
+ # @!attribute [rw] project_name
182
+ # @return [::String]
183
+ # Required. The resource name of the Google Cloud Platform project. Written
184
+ # as `projects/` plus the
185
+ # [Google Cloud Platform project
186
+ # ID](https://support.google.com/cloud/answer/6158840).
187
+ # Example: `projects/my-project-123`.
188
+ # @!attribute [rw] group_id
189
+ # @return [::String]
190
+ # Required. The group for which events shall be returned.
191
+ # @!attribute [rw] service_filter
192
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ServiceContextFilter]
193
+ # Optional. List only ErrorGroups which belong to a service context that
194
+ # matches the filter.
195
+ # Data for all service contexts is returned if this field is not specified.
196
+ # @!attribute [rw] time_range
197
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::QueryTimeRange]
198
+ # Optional. List only data for the given time range.
199
+ # If not set a default time range is used. The field time_range_begin
200
+ # in the response will specify the beginning of this time range.
201
+ # @!attribute [rw] page_size
202
+ # @return [::Integer]
203
+ # Optional. The maximum number of results to return per response.
204
+ # @!attribute [rw] page_token
205
+ # @return [::String]
206
+ # Optional. A `next_page_token` provided by a previous response.
207
+ class ListEventsRequest
208
+ include ::Google::Protobuf::MessageExts
209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
+ end
211
+
212
+ # Contains a set of requested error events.
213
+ # @!attribute [rw] error_events
214
+ # @return [::Array<::Google::Cloud::ErrorReporting::V1beta1::ErrorEvent>]
215
+ # The error events which match the given request.
216
+ # @!attribute [rw] next_page_token
217
+ # @return [::String]
218
+ # If non-empty, more results are available.
219
+ # Pass this token, along with the same query parameters as the first
220
+ # request, to view the next page of results.
221
+ # @!attribute [rw] time_range_begin
222
+ # @return [::Google::Protobuf::Timestamp]
223
+ # The timestamp specifies the start time to which the request was restricted.
224
+ class ListEventsResponse
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
228
+
229
+ # Requests might be rejected or the resulting timed count durations might be
230
+ # adjusted for lower durations.
231
+ # @!attribute [rw] period
232
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::QueryTimeRange::Period]
233
+ # Restricts the query to the specified time range.
234
+ class QueryTimeRange
235
+ include ::Google::Protobuf::MessageExts
236
+ extend ::Google::Protobuf::MessageExts::ClassMethods
237
+
238
+ # The supported time ranges.
239
+ module Period
240
+ # Do not use.
241
+ PERIOD_UNSPECIFIED = 0
242
+
243
+ # Retrieve data for the last hour.
244
+ # Recommended minimum timed count duration: 1 min.
245
+ PERIOD_1_HOUR = 1
246
+
247
+ # Retrieve data for the last 6 hours.
248
+ # Recommended minimum timed count duration: 10 min.
249
+ PERIOD_6_HOURS = 2
250
+
251
+ # Retrieve data for the last day.
252
+ # Recommended minimum timed count duration: 1 hour.
253
+ PERIOD_1_DAY = 3
254
+
255
+ # Retrieve data for the last week.
256
+ # Recommended minimum timed count duration: 6 hours.
257
+ PERIOD_1_WEEK = 4
258
+
259
+ # Retrieve data for the last 30 days.
260
+ # Recommended minimum timed count duration: 1 day.
261
+ PERIOD_30_DAYS = 5
262
+ end
263
+ end
264
+
265
+ # Specifies criteria for filtering a subset of service contexts.
266
+ # The fields in the filter correspond to the fields in `ServiceContext`.
267
+ # Only exact, case-sensitive matches are supported.
268
+ # If a field is unset or empty, it matches arbitrary values.
269
+ # @!attribute [rw] service
270
+ # @return [::String]
271
+ # Optional. The exact value to match against
272
+ # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
273
+ # @!attribute [rw] version
274
+ # @return [::String]
275
+ # Optional. The exact value to match against
276
+ # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
277
+ # @!attribute [rw] resource_type
278
+ # @return [::String]
279
+ # Optional. The exact value to match against
280
+ # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
281
+ class ServiceContextFilter
282
+ include ::Google::Protobuf::MessageExts
283
+ extend ::Google::Protobuf::MessageExts::ClassMethods
284
+ end
285
+
286
+ # Deletes all events in the project.
287
+ # @!attribute [rw] project_name
288
+ # @return [::String]
289
+ # Required. The resource name of the Google Cloud Platform project. Written
290
+ # as `projects/` plus the
291
+ # [Google Cloud Platform project
292
+ # ID](https://support.google.com/cloud/answer/6158840).
293
+ # Example: `projects/my-project-123`.
294
+ class DeleteEventsRequest
295
+ include ::Google::Protobuf::MessageExts
296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
297
+ end
298
+
299
+ # Response message for deleting error events.
300
+ class DeleteEventsResponse
301
+ include ::Google::Protobuf::MessageExts
302
+ extend ::Google::Protobuf::MessageExts::ClassMethods
303
+ end
304
+
305
+ # Specifies how the time periods of error group counts are aligned.
306
+ module TimedCountAlignment
307
+ # No alignment specified.
308
+ ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0
309
+
310
+ # The time periods shall be consecutive, have width equal to the
311
+ # requested duration, and be aligned at the `alignment_time` provided in
312
+ # the request.
313
+ # The `alignment_time` does not have to be inside the query period but
314
+ # even if it is outside, only time periods are returned which overlap
315
+ # with the query period.
316
+ # A rounded alignment will typically result in a
317
+ # different size of the first or the last time period.
318
+ ALIGNMENT_EQUAL_ROUNDED = 1
319
+
320
+ # The time periods shall be consecutive, have width equal to the
321
+ # requested duration, and be aligned at the end of the requested time
322
+ # period. This can result in a different size of the
323
+ # first time period.
324
+ ALIGNMENT_EQUAL_AT_END = 2
325
+ end
326
+
327
+ # A sorting order of error groups.
328
+ module ErrorGroupOrder
329
+ # No group order specified.
330
+ GROUP_ORDER_UNSPECIFIED = 0
331
+
332
+ # Total count of errors in the given time window in descending order.
333
+ COUNT_DESC = 1
334
+
335
+ # Timestamp when the group was last seen in the given time window
336
+ # in descending order.
337
+ LAST_SEEN_DESC = 2
338
+
339
+ # Timestamp when the group was created in descending order.
340
+ CREATED_DESC = 3
341
+
342
+ # Number of affected users in the given time window in descending order.
343
+ AFFECTED_USERS_DESC = 4
344
+ end
345
+ end
346
+ end
347
+ end
348
+ end
@@ -0,0 +1,92 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ErrorReporting
23
+ module V1beta1
24
+ # A request for reporting an individual error event.
25
+ # @!attribute [rw] project_name
26
+ # @return [::String]
27
+ # Required. The resource name of the Google Cloud Platform project. Written
28
+ # as `projects/` plus the
29
+ # [Google Cloud Platform project
30
+ # ID](https://support.google.com/cloud/answer/6158840). Example:
31
+ # `projects/my-project-123`.
32
+ # @!attribute [rw] event
33
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent]
34
+ # Required. The error event to be reported.
35
+ class ReportErrorEventRequest
36
+ include ::Google::Protobuf::MessageExts
37
+ extend ::Google::Protobuf::MessageExts::ClassMethods
38
+ end
39
+
40
+ # Response for reporting an individual error event.
41
+ # Data may be added to this message in the future.
42
+ class ReportErrorEventResponse
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # An error event which is reported to the Error Reporting system.
48
+ # @!attribute [rw] event_time
49
+ # @return [::Google::Protobuf::Timestamp]
50
+ # Optional. Time when the event occurred.
51
+ # If not provided, the time when the event was received by the
52
+ # Error Reporting system will be used.
53
+ # @!attribute [rw] service_context
54
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ServiceContext]
55
+ # Required. The service context in which this error has occurred.
56
+ # @!attribute [rw] message
57
+ # @return [::String]
58
+ # Required. The error message.
59
+ # If no `context.reportLocation` is provided, the message must contain a
60
+ # header (typically consisting of the exception type name and an error
61
+ # message) and an exception stack trace in one of the supported programming
62
+ # languages and formats.
63
+ # Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
64
+ # Supported stack trace formats are:
65
+ #
66
+ # * **Java**: Must be the return value of
67
+ # [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
68
+ # * **Python**: Must be the return value of
69
+ # [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
70
+ # * **JavaScript**: Must be the value of
71
+ # [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
72
+ # by V8.
73
+ # * **Ruby**: Must contain frames returned by
74
+ # [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
75
+ # * **C#**: Must be the return value of
76
+ # [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
77
+ # * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
78
+ # and contain the result of
79
+ # [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
80
+ # * **Go**: Must be the return value of
81
+ # [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
82
+ # @!attribute [rw] context
83
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ErrorContext]
84
+ # Optional. A description of the context in which the error occurred.
85
+ class ReportedErrorEvent
86
+ include ::Google::Protobuf::MessageExts
87
+ extend ::Google::Protobuf::MessageExts::ClassMethods
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end