groups
Creates, updates, deletes, gets or lists a groups resource.
Overview
| Name | groups |
| Type | Resource |
| Id | google.clouderrorreporting.groups |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
name | string | The 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. |
groupId | string | An 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. |
resolutionStatus | string | Error group's resolution status. An unspecified resolution status will be interpreted as OPEN |
trackingIssues | array | Associated tracking issues. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, groupsId | Get the specified group. | |
update | replace | projectsId, locationsId, groupsId | Replace 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.
| Name | Datatype | Description |
|---|---|---|
groupsId | string | |
locationsId | string | |
projectsId | string |
SELECT examples
- get
Get the specified group.
SELECT
name,
groupId,
resolutionStatus,
trackingIssues
FROM google.clouderrorreporting.groups
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND groupsId = '{{ groupsId }}' -- required
;
REPLACE examples
- update
Replace the data for the specified group. Fails if the group does not exist.
REPLACE google.clouderrorreporting.groups
SET
data__name = '{{ name }}',
data__groupId = '{{ groupId }}',
data__trackingIssues = '{{ trackingIssues }}',
data__resolutionStatus = '{{ resolutionStatus }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND groupsId = '{{ groupsId }}' --required
RETURNING
name,
groupId,
resolutionStatus,
trackingIssues;