Reference documentation and code samples for the Error Reporting V1beta1 API class Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent.
An error event which is reported to the Error Reporting system.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#context
def context() -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorContext
- (::Google::Cloud::ErrorReporting::V1beta1::ErrorContext) — Optional. A description of the context in which the error occurred.
#context=
def context=(value) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorContext
- value (::Google::Cloud::ErrorReporting::V1beta1::ErrorContext) — Optional. A description of the context in which the error occurred.
- (::Google::Cloud::ErrorReporting::V1beta1::ErrorContext) — Optional. A description of the context in which the error occurred.
#event_time
def event_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::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.
#event_time=
def event_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::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.
- (::Google::Protobuf::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.
#message
def message() -> ::String
-
(::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()
. - 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()
.
- Java: Must be the return value of
#message=
def message=(value) -> ::String
-
value (::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()
. - 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()
.
- Java: Must be the return value of
-
(::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()
. - 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()
.
- Java: Must be the return value of
#service_context
def service_context() -> ::Google::Cloud::ErrorReporting::V1beta1::ServiceContext
- (::Google::Cloud::ErrorReporting::V1beta1::ServiceContext) — Required. The service context in which this error has occurred.
#service_context=
def service_context=(value) -> ::Google::Cloud::ErrorReporting::V1beta1::ServiceContext
- value (::Google::Cloud::ErrorReporting::V1beta1::ServiceContext) — Required. The service context in which this error has occurred.
- (::Google::Cloud::ErrorReporting::V1beta1::ServiceContext) — Required. The service context in which this error has occurred.