Skip to main content

group_stats

Creates, updates, deletes, gets or lists a group_stats resource.

Overview

Namegroup_stats
TypeResource
Idgoogle.clouderrorreporting.group_stats

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
affectedServicesarrayService contexts with a non-zero error count for the given filter criteria. This list can be truncated if multiple services are affected. Refer to num_affected_services for the total count.
affectedUsersCountstring (int64)Approximate number of affected users in the given group that match the filter criteria. Users are distinguished by data in the ErrorContext of the individual error events, such as their login name or their remote IP address in case of HTTP requests. The number of affected users can be zero even if the number of errors is non-zero if no data was provided from which the affected user could be deduced. Users are counted based on data in the request context that was provided in the error report. If more users are implicitly affected, such as due to a crash of the whole service, this is not reflected here.
countstring (int64)Approximate total number of events in the given group that match the filter criteria.
firstSeenTimestring (google-datetime)Approximate first occurrence that was ever seen for this group and which matches the given filter criteria, ignoring the time_range that was specified in the request.
groupobjectGroup data that is independent of the filter criteria. (id: ErrorGroup)
lastSeenTimestring (google-datetime)Approximate last occurrence that was ever seen for this group and which matches the given filter criteria, ignoring the time_range that was specified in the request.
numAffectedServicesinteger (int32)The total number of services with a non-zero error count for the given filter criteria.
representativeobjectAn 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. (id: ErrorEvent)
timedCountsarrayApproximate number of occurrences over time. Timed counts returned by ListGroups are guaranteed to be: - Inside the requested time interval - Non-overlapping, and - Ordered by ascending time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsIdgroupId, serviceFilter.service, serviceFilter.version, serviceFilter.resourceType, timeRange.period, timedCountDuration, alignment, alignmentTime, order, pageSize, pageTokenLists the specified groups.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
alignmentstring
alignmentTimestring (google-datetime)
groupIdstring
orderstring
pageSizeinteger (int32)
pageTokenstring
serviceFilter.resourceTypestring
serviceFilter.servicestring
serviceFilter.versionstring
timeRange.periodstring
timedCountDurationstring (google-duration)

SELECT examples

Lists the specified groups.

SELECT
affectedServices,
affectedUsersCount,
count,
firstSeenTime,
group,
lastSeenTime,
numAffectedServices,
representative,
timedCounts
FROM google.clouderrorreporting.group_stats
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND groupId = '{{ groupId }}'
AND serviceFilter.service = '{{ serviceFilter.service }}'
AND serviceFilter.version = '{{ serviceFilter.version }}'
AND serviceFilter.resourceType = '{{ serviceFilter.resourceType }}'
AND timeRange.period = '{{ timeRange.period }}'
AND timedCountDuration = '{{ timedCountDuration }}'
AND alignment = '{{ alignment }}'
AND alignmentTime = '{{ alignmentTime }}'
AND order = '{{ order }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';