Group data that is independent of the filter criteria.
↳ count
int|string
Approximate total number of events in the given group that match the filter criteria.
↳ affected_users_count
int|string
Approximate number of affected users in the given group that match the filter criteria. Users are distinguished by data in the [ErrorContext] [google.devtools.clouderrorreporting.v1beta1.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.
Approximate 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.
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.
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.
Service contexts with a non-zero error count for the given filter criteria. This list can be truncated if multiple services are affected. Refer tonum_affected_servicesfor the total count.
↳ num_affected_services
int
The total number of services with a non-zero error count for the given filter criteria.
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.
getGroup
Group data that is independent of the filter criteria.
Approximate total number of events in the given group that match
the filter criteria.
Returns
Type
Description
int|string
setCount
Approximate total number of events in the given group that match
the filter criteria.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getAffectedUsersCount
Approximate number of affected users in the given group that
match the filter criteria.
Users are distinguished by data in theErrorContextof 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.
Returns
Type
Description
int|string
setAffectedUsersCount
Approximate number of affected users in the given group that
match the filter criteria.
Users are distinguished by data in theErrorContextof 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.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getTimedCounts
Approximate number of occurrences over time.
Timed counts returned by ListGroups are guaranteed to be:
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.
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.
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.
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.
The total number of services with a non-zero error count for the given
filter criteria.
Returns
Type
Description
int
setNumAffectedServices
The total number of services with a non-zero error count for the given
filter criteria.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getRepresentative
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Error Reporting V1beta1 Client - Class ErrorGroupStats (0.23.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.23.1 (latest)](/php/docs/reference/cloud-error-reporting/latest/V1beta1.ErrorGroupStats)\n- [0.23.0](/php/docs/reference/cloud-error-reporting/0.23.0/V1beta1.ErrorGroupStats)\n- [0.22.10](/php/docs/reference/cloud-error-reporting/0.22.10/V1beta1.ErrorGroupStats)\n- [0.21.1](/php/docs/reference/cloud-error-reporting/0.21.1/V1beta1.ErrorGroupStats)\n- [0.20.2](/php/docs/reference/cloud-error-reporting/0.20.2/V1beta1.ErrorGroupStats)\n- [0.19.12](/php/docs/reference/cloud-error-reporting/0.19.12/V1beta1.ErrorGroupStats) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class ErrorGroupStats.\n\nData extracted for a specific group based on certain filter criteria,\nsuch as a given time period and/or service filter.\n\nGenerated from protobuf message `google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ErrorReporting \\\\ V1beta1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGroup\n\nGroup data that is independent of the filter criteria.\n\n### hasGroup\n\n### clearGroup\n\n### setGroup\n\nGroup data that is independent of the filter criteria.\n\n### getCount\n\nApproximate total number of events in the given group that match\nthe filter criteria.\n\n### setCount\n\nApproximate total number of events in the given group that match\nthe filter criteria.\n\n### getAffectedUsersCount\n\nApproximate number of affected users in the given group that\nmatch the filter criteria.\n\nUsers are distinguished by data in the [ErrorContext](/php/docs/reference/cloud-error-reporting/latest/V1beta1.ErrorContext) of the\nindividual error events, such as their login name or their remote\nIP address in case of HTTP requests.\nThe number of affected users can be zero even if the number of\nerrors is non-zero if no data was provided from which the\naffected user could be deduced.\nUsers are counted based on data in the request\ncontext that was provided in the error report. If more users are\nimplicitly affected, such as due to a crash of the whole service,\nthis is not reflected here.\n\n### setAffectedUsersCount\n\nApproximate number of affected users in the given group that\nmatch the filter criteria.\n\nUsers are distinguished by data in the [ErrorContext](/php/docs/reference/cloud-error-reporting/latest/V1beta1.ErrorContext) of the\nindividual error events, such as their login name or their remote\nIP address in case of HTTP requests.\nThe number of affected users can be zero even if the number of\nerrors is non-zero if no data was provided from which the\naffected user could be deduced.\nUsers are counted based on data in the request\ncontext that was provided in the error report. If more users are\nimplicitly affected, such as due to a crash of the whole service,\nthis is not reflected here.\n\n### getTimedCounts\n\nApproximate number of occurrences over time.\n\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requested time interval\n- Non-overlapping, and\n- Ordered by ascending time.\n\n### setTimedCounts\n\nApproximate number of occurrences over time.\n\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requested time interval\n- Non-overlapping, and\n- Ordered by ascending time.\n\n### getFirstSeenTime\n\nApproximate first occurrence that was ever seen for this group\nand which matches the given filter criteria, ignoring the\ntime_range that was specified in the request.\n\n### hasFirstSeenTime\n\n### clearFirstSeenTime\n\n### setFirstSeenTime\n\nApproximate first occurrence that was ever seen for this group\nand which matches the given filter criteria, ignoring the\ntime_range that was specified in the request.\n\n### getLastSeenTime\n\nApproximate last occurrence that was ever seen for this group and\nwhich matches the given filter criteria, ignoring the time_range\nthat was specified in the request.\n\n### hasLastSeenTime\n\n### clearLastSeenTime\n\n### setLastSeenTime\n\nApproximate last occurrence that was ever seen for this group and\nwhich matches the given filter criteria, ignoring the time_range\nthat was specified in the request.\n\n### getAffectedServices\n\nService contexts with a non-zero error count for the given filter\ncriteria. This list can be truncated if multiple services are affected.\n\nRefer to `num_affected_services` for the total count.\n\n### setAffectedServices\n\nService contexts with a non-zero error count for the given filter\ncriteria. This list can be truncated if multiple services are affected.\n\nRefer to `num_affected_services` for the total count.\n\n### getNumAffectedServices\n\nThe total number of services with a non-zero error count for the given\nfilter criteria.\n\n### setNumAffectedServices\n\nThe total number of services with a non-zero error count for the given\nfilter criteria.\n\n### getRepresentative\n\nAn arbitrary event that is chosen as representative for the whole group.\n\nThe representative event is intended to be used as a quick preview for\nthe whole group. Events in the group are usually sufficiently similar\nto each other such that showing an arbitrary representative provides\ninsight into the characteristics of the group as a whole.\n\n### hasRepresentative\n\n### clearRepresentative\n\n### setRepresentative\n\nAn arbitrary event that is chosen as representative for the whole group.\n\nThe representative event is intended to be used as a quick preview for\nthe whole group. Events in the group are usually sufficiently similar\nto each other such that showing an arbitrary representative provides\ninsight into the characteristics of the group as a whole."]]