Skip to main content

events

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

Overview

Nameevents
TypeResource
Idgoogle.clouderrorreporting.events

Fields

NameDatatypeDescription
contextobjectA description of the context in which an error occurred. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.
eventTimestringTime when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
messagestringThe stack trace that was reported or logged by the service.
serviceContextobjectDescribes a running service that sends errors. Its version changes over time and multiple versions can run in parallel.

Methods

NameAccessible byRequired ParamsDescription
listSELECTlocationsId, projectsIdLists the specified events.
delete_eventsDELETElocationsId, projectsIdDeletes all error events of a given project.
reportEXECprojectsIdReport an individual error event and record the event to a log. This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example: POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456 Note: [Error Reporting] (https://cloud.google.com/error-reporting) is a service built on Cloud Logging and can analyze log entries when all of the following are true: Customer-managed encryption keys (CMEK) are disabled on the log bucket. The log bucket satisfies one of the following: The log bucket is stored in the same project where the logs originated. The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.

SELECT examples

Lists the specified events.

SELECT
context,
eventTime,
message,
serviceContext
FROM google.clouderrorreporting.events
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified events resource.

/*+ delete */
DELETE FROM google.clouderrorreporting.events
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';