@@ -53,12 +53,18 @@ class TimedCountAlignment(proto.Enum):
53
53
ALIGNMENT_EQUAL_ROUNDED (1):
54
54
The time periods shall be consecutive, have width equal to
55
55
the requested duration, and be aligned at the
56
- ``alignment_time`` provided in the request. The
57
- ``alignment_time`` does not have to be inside the query
58
- period but even if it is outside, only time periods are
59
- returned which overlap with the query period. A rounded
60
- alignment will typically result in a different size of the
61
- first or the last time period.
56
+ [alignment_time]
57
+ [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
58
+ provided in the request.
59
+
60
+ The [alignment_time]
61
+ [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
62
+ does not have to be inside the query period but even if it
63
+ is outside, only time periods are returned which overlap
64
+ with the query period.
65
+
66
+ A rounded alignment will typically result in a different
67
+ size of the first or the last time period.
62
68
ALIGNMENT_EQUAL_AT_END (2):
63
69
The time periods shall be consecutive, have
64
70
width equal to the requested duration, and be
@@ -106,29 +112,54 @@ class ListGroupStatsRequest(proto.Message):
106
112
project. Written as ``projects/{projectID}`` or
107
113
``projects/{projectNumber}``, where ``{projectID}`` and
108
114
``{projectNumber}`` can be found in the `Google Cloud
109
- Console <https://support.google.com/cloud/answer/6158840>`__.
110
-
111
- Examples: ``projects/my-project-123``, ``projects/5551234``.
115
+ console <https://support.google.com/cloud/answer/6158840>`__.
116
+ It may also include a location, such as
117
+ ``projects/{projectID}/locations/{location}`` where
118
+ ``{location}`` is a cloud region.
119
+
120
+ Examples: ``projects/my-project-123``, ``projects/5551234``,
121
+ ``projects/my-project-123/locations/us-central1``,
122
+ ``projects/5551234/locations/us-central1``.
123
+
124
+ For a list of supported locations, see `Supported
125
+ Regions <https://cloud.google.com/logging/docs/region-support>`__.
126
+ ``global`` is the default when unspecified. Use ``-`` as a
127
+ wildcard to request group stats from all regions.
112
128
group_id (MutableSequence[str]):
113
- Optional. List all
114
- <code>ErrorGroupStats</code> with these IDs.
129
+ Optional. List all [ErrorGroupStats]
130
+ [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats]
131
+ with these IDs. The ``group_id`` is a unique identifier for
132
+ a particular error group. The identifier is derived from key
133
+ parts of the error-log content and is treated as Service
134
+ Data. For information about how Service Data is handled, see
135
+ [Google Cloud Privacy Notice]
136
+ (https://cloud.google.com/terms/cloud-privacy-notice).
115
137
service_filter (google.cloud.errorreporting_v1beta1.types.ServiceContextFilter):
116
- Optional. List only
117
- <code> ErrorGroupStats</code> which belong to a
118
- service context that matches the filter. Data
119
- for all service contexts is returned if this
120
- field is not specified.
138
+ Optional. List only [ErrorGroupStats]
139
+ [google.devtools.clouderrorreporting.v1beta1. ErrorGroupStats]
140
+ which belong to a service context that matches the filter.
141
+ Data for all service contexts is returned if this field is
142
+ not specified.
121
143
time_range (google.cloud.errorreporting_v1beta1.types.QueryTimeRange):
122
144
Optional. List data for the given time range. If not set, a
123
- default time range is used. The field time_range_begin in
124
- the response will specify the beginning of this time range.
125
- Only ErrorGroupStats with a non-zero count in the given time
126
- range are returned, unless the request contains an explicit
127
- group_id list. If a group_id list is given, also
128
- ErrorGroupStats with zero occurrences are returned.
145
+ default time range is used. The field [time_range_begin]
146
+ [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
147
+ in the response will specify the beginning of this time
148
+ range. Only [ErrorGroupStats]
149
+ [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats]
150
+ with a non-zero count in the given time range are returned,
151
+ unless the request contains an explicit [group_id]
152
+ [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
153
+ list. If a [group_id]
154
+ [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
155
+ list is given, also [ErrorGroupStats]
156
+ [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats]
157
+ with zero occurrences are returned.
129
158
timed_count_duration (google.protobuf.duration_pb2.Duration):
130
159
Optional. The preferred duration for a single returned
131
- ``TimedCount``. If not set, no timed counts are returned.
160
+ [TimedCount]
161
+ [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If
162
+ not set, no timed counts are returned.
132
163
alignment (google.cloud.errorreporting_v1beta1.types.TimedCountAlignment):
133
164
Optional. The alignment of the timed counts to be returned.
134
165
Default is ``ALIGNMENT_EQUAL_AT_END``.
@@ -143,9 +174,11 @@ class ListGroupStatsRequest(proto.Message):
143
174
Optional. The maximum number of results to
144
175
return per response. Default is 20.
145
176
page_token (str):
146
- Optional. A ``next_page_token`` provided by a previous
147
- response. To view additional results, pass this token along
148
- with the identical query parameters as the first request.
177
+ Optional. A [next_page_token]
178
+ [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
179
+ provided by a previous response. To view additional results,
180
+ pass this token along with the identical query parameters as
181
+ the first request.
149
182
"""
150
183
151
184
project_name : str = proto .Field (
@@ -251,15 +284,16 @@ class ErrorGroupStats(proto.Message):
251
284
affected_users_count (int):
252
285
Approximate number of affected users in the given group that
253
286
match the filter criteria. Users are distinguished by data
254
- in the ``ErrorContext`` of the individual error events, such
255
- as their login name or their remote IP address in case of
256
- HTTP requests. The number of affected users can be zero even
257
- if the number of errors is non-zero if no data was provided
258
- from which the affected user could be deduced. Users are
259
- counted based on data in the request context that was
260
- provided in the error report. If more users are implicitly
261
- affected, such as due to a crash of the whole service, this
262
- is not reflected here.
287
+ in the [ErrorContext]
288
+ [google.devtools.clouderrorreporting.v1beta1.ErrorContext]
289
+ of the individual error events, such as their login name or
290
+ their remote IP address in case of HTTP requests. The number
291
+ of affected users can be zero even if the number of errors
292
+ is non-zero if no data was provided from which the affected
293
+ user could be deduced. Users are counted based on data in
294
+ the request context that was provided in the error report.
295
+ If more users are implicitly affected, such as due to a
296
+ crash of the whole service, this is not reflected here.
263
297
timed_counts (MutableSequence[google.cloud.errorreporting_v1beta1.types.TimedCount]):
264
298
Approximate number of occurrences over time.
265
299
Timed counts returned by ListGroups are
@@ -377,14 +411,26 @@ class ListEventsRequest(proto.Message):
377
411
Attributes:
378
412
project_name (str):
379
413
Required. The resource name of the Google Cloud Platform
380
- project. Written as ``projects/{projectID}``, where
414
+ project. Written as ``projects/{projectID}`` or
415
+ ``projects/{projectID}/locations/{location}``, where
381
416
``{projectID}`` is the `Google Cloud Platform project
382
- ID <https://support.google.com/cloud/answer/6158840>`__.
417
+ ID <https://support.google.com/cloud/answer/6158840>`__ and
418
+ ``{location}`` is a Cloud region.
383
419
384
- Example: ``projects/my-project-123``.
420
+ Examples: ``projects/my-project-123``,
421
+ ``projects/my-project-123/locations/global``.
422
+
423
+ For a list of supported locations, see `Supported
424
+ Regions <https://cloud.google.com/logging/docs/region-support>`__.
425
+ ``global`` is the default when unspecified.
385
426
group_id (str):
386
- Required. The group for which events shall be
387
- returned.
427
+ Required. The group for which events shall be returned. The
428
+ ``group_id`` is a unique identifier for a particular error
429
+ group. The identifier is derived from key parts of the
430
+ error-log content and is treated as Service Data. For
431
+ information about how Service Data is handled, see `Google
432
+ Cloud Privacy
433
+ Notice <https://cloud.google.com/terms/cloud-privacy-notice>`__.
388
434
service_filter (google.cloud.errorreporting_v1beta1.types.ServiceContextFilter):
389
435
Optional. List only ErrorGroups which belong
390
436
to a service context that matches the filter.
@@ -469,7 +515,13 @@ def raw_page(self):
469
515
470
516
471
517
class QueryTimeRange (proto .Message ):
472
- r"""Requests might be rejected or the resulting timed count
518
+ r"""A time range for which error group data shall be displayed.
519
+ Query time ranges end at 'now'.
520
+ When longer time ranges are selected, the resolution of the data
521
+ decreases. The description of each time range below indicates
522
+ the suggested minimum timed count duration for that range.
523
+
524
+ Requests might be rejected or the resulting timed count
473
525
durations might be adjusted for lower durations.
474
526
475
527
Attributes:
@@ -555,11 +607,18 @@ class DeleteEventsRequest(proto.Message):
555
607
Attributes:
556
608
project_name (str):
557
609
Required. The resource name of the Google Cloud Platform
558
- project. Written as ``projects/{projectID}``, where
610
+ project. Written as ``projects/{projectID}`` or
611
+ ``projects/{projectID}/locations/{location}``, where
559
612
``{projectID}`` is the `Google Cloud Platform project
560
- ID <https://support.google.com/cloud/answer/6158840>`__.
613
+ ID <https://support.google.com/cloud/answer/6158840>`__ and
614
+ ``{location}`` is a Cloud region.
615
+
616
+ Examples: ``projects/my-project-123``,
617
+ ``projects/my-project-123/locations/global``.
561
618
562
- Example: ``projects/my-project-123``.
619
+ For a list of supported locations, see `Supported
620
+ Regions <https://cloud.google.com/logging/docs/region-support>`__.
621
+ ``global`` is the default when unspecified.
563
622
"""
564
623
565
624
project_name : str = proto .Field (
0 commit comments