- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- TimedCountAlignment
- ErrorGroupOrder
- ErrorGroupStats
- TimedCount
- Try it!
Lists the specified groups.
HTTP request
GET https://clouderrorreporting.googleapis.com/v1beta1/{projectName=projects/*}/groupStats
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
projectName |
Required. The resource name of the Google Cloud Platform project. Written as Examples: |
Query parameters
Parameters | |
---|---|
groupId[] |
Optional. List all |
serviceFilter |
Optional. List only |
timeRange |
Optional. List data for the given time range. If not set, a default time range is used. The field |
timedCountDuration |
Optional. The preferred duration for a single returned A duration in seconds with up to nine fractional digits, ending with ' |
alignment |
Optional. The alignment of the timed counts to be returned. Default is |
alignmentTime |
Optional. Time where the timed counts shall be aligned if rounded alignment is chosen. Default is 00:00 UTC. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
order |
Optional. The sort order in which the results are returned. Default is |
pageSize |
Optional. The maximum number of results to return per response. Default is 20. |
pageToken |
Optional. A |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Contains a set of requested error group stats.
JSON representation |
---|
{
"errorGroupStats": [
{
object ( |
Fields | |
---|---|
errorGroupStats[] |
The error group stats which match the given request. |
nextPageToken |
If non-empty, more results are available. Pass this token, along with the same query parameters as the first request, to view the next page of results. |
timeRangeBegin |
The timestamp specifies the start time to which the request was restricted. The start time is set based on the requested time range. It may be adjusted to a later time if a project has exceeded the storage quota and older data has been deleted. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/stackdriver-integration
For more information, see the Authentication Overview.
TimedCountAlignment
Specifies how the time periods of error group counts are aligned.
Enums | |
---|---|
ERROR_COUNT_ALIGNMENT_UNSPECIFIED |
No alignment specified. |
ALIGNMENT_EQUAL_ROUNDED |
The time periods shall be consecutive, have width equal to the requested duration, and be aligned at the The A rounded alignment will typically result in a different size of the first or the last time period. |
ALIGNMENT_EQUAL_AT_END |
The time periods shall be consecutive, have width equal to the requested duration, and be aligned at the end of the requested time period. This can result in a different size of the first time period. |
ErrorGroupOrder
A sorting order of error groups.
Enums | |
---|---|
GROUP_ORDER_UNSPECIFIED |
No group order specified. |
COUNT_DESC |
Total count of errors in the given time window in descending order. |
LAST_SEEN_DESC |
Timestamp when the group was last seen in the given time window in descending order. |
CREATED_DESC |
Timestamp when the group was created in descending order. |
AFFECTED_USERS_DESC |
Number of affected users in the given time window in descending order. |
ErrorGroupStats
Data extracted for a specific group based on certain filter criteria, such as a given time period and/or service filter.
JSON representation |
---|
{ "group": { object ( |
Fields | |
---|---|
group |
Group data that is independent of the filter criteria. |
count |
Approximate total number of events in the given group that match the filter criteria. |
affectedUsersCount |
Approximate number of affected users in the given group that match the filter criteria. Users are distinguished by data in the |
timedCounts[] |
Approximate number of occurrences over time. Timed counts returned by ListGroups are guaranteed to be:
|
firstSeenTime |
Approximate first occurrence that was ever seen for this group and which matches the given filter criteria, ignoring the timeRange that was specified in the request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
lastSeenTime |
Approximate last occurrence that was ever seen for this group and which matches the given filter criteria, ignoring the timeRange that was specified in the request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
affectedServices[] |
Service contexts with a non-zero error count for the given filter criteria. This list can be truncated if multiple services are affected. Refer to |
numAffectedServices |
The total number of services with a non-zero error count for the given filter criteria. |
representative |
An arbitrary event that is chosen as representative for the whole group. The representative event is intended to be used as a quick preview for the whole group. Events in the group are usually sufficiently similar to each other such that showing an arbitrary representative provides insight into the characteristics of the group as a whole. |
TimedCount
The number of errors in a given time period. All numbers are approximate since the error events are sampled before counting them.
JSON representation |
---|
{ "count": string, "startTime": string, "endTime": string } |
Fields | |
---|---|
count |
Approximate number of occurrences in the given time period. |
startTime |
Start of the time period to which A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
End of the time period to which A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |