View Source GoogleApi.CloudErrorReporting.V1beta1.Model.ReportedErrorEvent (google_api_cloud_error_reporting v0.19.4)
An error event which is reported to the Error Reporting system.
Attributes
-
context
(type:GoogleApi.CloudErrorReporting.V1beta1.Model.ErrorContext.t
, default:nil
) - Optional. A description of the context in which the error occurred. -
eventTime
(type:DateTime.t
, default:nil
) - Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system is used. If provided, the time must not exceed the logs retention period in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned. -
message
(type:String.t
, default:nil
) - Required. The error message. If nocontext.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 ofThrowable.printStackTrace()
. Python: Must be the return value oftraceback.format_exc()
. JavaScript: Must be the value oferror.stack
as returned by V8. Ruby: Must contain frames returned byException.backtrace
. C#: Must be the return value ofException.ToString()
. PHP: Must be prefixed with"PHP (Notice|Parse error|Fatal error|Warning): "
and contain the result of(string)$exception
. *Go: Must be the return value ofruntime.Stack()
. -
serviceContext
(type:GoogleApi.CloudErrorReporting.V1beta1.Model.ServiceContext.t
, default:nil
) - Required. The service context in which this error has occurred.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.CloudErrorReporting.V1beta1.Model.ReportedErrorEvent{ context: GoogleApi.CloudErrorReporting.V1beta1.Model.ErrorContext.t() | nil, eventTime: DateTime.t() | nil, message: String.t() | nil, serviceContext: GoogleApi.CloudErrorReporting.V1beta1.Model.ServiceContext.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.