- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- ReportedErrorEvent
- Try it!
Report an individual error event.
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/projects/example-project/events:report?key=123ABC456
HTTP request
POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName=projects/*}/events:report
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
projectName |
Required. The resource name of the Google Cloud Platform project. Written as |
Request body
The request body contains an instance of ReportedErrorEvent
.
Response body
If successful, the response body will be empty.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/stackdriver-integration
For more information, see the Authentication Overview.
ReportedErrorEvent
An error event which is reported to the Error Reporting system.
JSON representation | |
---|---|
{ "eventTime": string, "serviceContext": { object ( |
Fields | |
---|---|
eventTime |
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: |
serviceContext |
Required. The service context in which this error has occurred. |
message |
Required. The error message. If no
|
context |
Optional. A description of the context in which the error occurred. |