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

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.
affectedUsersCountstringApproximate 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.
countstringApproximate total number of events in the given group that match the filter criteria.
firstSeenTimestringApproximate 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.
groupobjectDescription of a group of similar error events.
lastSeenTimestringApproximate 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.
numAffectedServicesintegerThe total number of services with a non-zero error count for the given filter criteria.
representativeobjectAn error event which is returned by the Error Reporting system.
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

NameAccessible byRequired ParamsDescription
listSELECTlocationsId, projectsIdLists the specified groups.

SELECT examples

Lists the specified groups.

SELECT
affectedServices,
affectedUsersCount,
count,
firstSeenTime,
group,
lastSeenTime,
numAffectedServices,
representative,
timedCounts
FROM google.clouderrorreporting.group_stats
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';