ReportedErrorEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)
An error event which is reported to the Error Reporting system.
Attributes | |
---|---|
Name | Description |
event_time |
google.protobuf.timestamp_pb2.Timestamp
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used. |
service_context |
google.cloud.errorreporting_v1beta1.types.ServiceContext
Required. The service context in which this error has occurred. |
message |
str
Required. The error message. If no context.reportLocation is provided, the message must
contain a header (typically consisting of the exception type
name and an error message) and an exception stack trace in
one of the supported programming languages and formats.
Supported languages are Java, Python, JavaScript, Ruby, C#,
PHP, and Go. Supported stack trace formats are:
- **Java**: Must be the return value of
``Throwable.printStackTrace() __.
- **Python**: Must be the return value of
``traceback.format_exc() __.
- **JavaScript**: Must be the value of
``error.stack __
as returned by V8.
- **Ruby**: Must contain frames returned by
``Exception.backtrace __.
- **C#**: Must be the return value of
``Exception.ToString() __.
- **PHP**: Must start with
PHP (Notice|Parse error|Fatal error|Warning) and
contain the result of
``(string)$exception __.
- **Go**: Must be the return value of
``runtime.Stack() __.
|
context |
google.cloud.errorreporting_v1beta1.types.ErrorContext
Optional. A description of the context in which the error occurred. |