class Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent
An error event which is reported to the Error Reporting system.
Attributes
A 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. Corresponds to the JSON property `context` @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used. Corresponds to the JSON property `eventTime` @return [String]
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()`](docs. oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29). * Python: Must be the return value of [`traceback.format_exc()`](https:// docs.python.org/2/library/traceback.html#traceback.format_exc). * *JavaScript *: Must be the value of [`error.stack`](github.com/v8/v8/wiki/Stack- Trace-API) as returned by V8. * Ruby: Must contain frames returned by [` Exception.backtrace`](ruby-doc.org/core-2.2.0/Exception.html#method-i- backtrace). * **C#**: Must be the return value of [`Exception.ToString()`]( msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). * ** PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` and contain the result of [`(string)$exception`](php.net/manual/en/ exception.tostring.php). * Go: Must be the return value of [`runtime.Stack( )`](golang.org/pkg/runtime/debug/#Stack). Corresponds to the JSON property `message` @return [String]
Describes a running service that sends errors. Its version changes over time and multiple versions can run in parallel. Corresponds to the JSON property `serviceContext` @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
Public Class Methods
# File lib/google/apis/clouderrorreporting_v1beta1/classes.rb, line 434 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/clouderrorreporting_v1beta1/classes.rb, line 439 def update!(**args) @context = args[:context] if args.key?(:context) @event_time = args[:event_time] if args.key?(:event_time) @message = args[:message] if args.key?(:message) @service_context = args[:service_context] if args.key?(:service_context) end