Skip to main content

groups

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

Overview​

Namegroups
TypeResource
Idgoogle.clouderrorreporting.groups

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe group resource name. Written as projects/{projectID}/groups/{group_id} or projects/{projectID}/locations/{location}/groups/{group_id} Examples: projects/my-project-123/groups/my-group, projects/my-project-123/locations/us-central1/groups/my-group In the group resource name, the group_id is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see Google Cloud Privacy Notice. For a list of supported locations, see Supported Regions. global is the default when unspecified.
groupIdstringAn opaque identifier of the group. This field is assigned by the Error Reporting system and always populated. In the group resource name, the group_id is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see Google Cloud Privacy Notice.
resolutionStatusstringError group's resolution status. An unspecified resolution status will be interpreted as OPEN (RESOLUTION_STATUS_UNSPECIFIED, OPEN, ACKNOWLEDGED, RESOLVED, MUTED)
trackingIssuesarrayAssociated tracking issues.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, groupsIdGet the specified group.
updatereplaceprojectsId, groupsIdReplace the data for the specified group. Fails if the group does not exist.

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
groupsIdstring
projectsIdstring

SELECT examples​

Get the specified group.

SELECT
name,
groupId,
resolutionStatus,
trackingIssues
FROM google.clouderrorreporting.groups
WHERE projectsId = '{{ projectsId }}' -- required
AND groupsId = '{{ groupsId }}' -- required
;

REPLACE examples​

Replace the data for the specified group. Fails if the group does not exist.

REPLACE google.clouderrorreporting.groups
SET
data__groupId = '{{ groupId }}',
data__name = '{{ name }}',
data__resolutionStatus = '{{ resolutionStatus }}',
data__trackingIssues = '{{ trackingIssues }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND groupsId = '{{ groupsId }}' --required
RETURNING
name,
groupId,
resolutionStatus,
trackingIssues;