(::Google::Protobuf::Timestamp) — 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.
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 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.
Returns
(::Google::Protobuf::Timestamp) — 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
defmessage()->::String
Returns
(::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:
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:
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Error Reporting V1beta1 API - Class Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent (v0.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.0 (latest)](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.13.1](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.13.1/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.12.0](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.12.0/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.11.1](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.11.1/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.10.0](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.10.0/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.9.2](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.9.2/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.8.0](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.8.0/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.7.0](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.7.0/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.6.0](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.6.0/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.5.1](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.5.1/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent)\n- [0.4.5](/ruby/docs/reference/google-cloud-error_reporting-v1beta1/0.4.5/Google-Cloud-ErrorReporting-V1beta1-ReportedErrorEvent) \nReference documentation and code samples for the Error Reporting V1beta1 API class Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent.\n\nAn error event which is reported to the Error Reporting system. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #context\n\n def context() -\u003e ::Google::Cloud::ErrorReporting::V1beta1::ErrorContext\n\n**Returns**\n\n- ([::Google::Cloud::ErrorReporting::V1beta1::ErrorContext](./Google-Cloud-ErrorReporting-V1beta1-ErrorContext)) --- Optional. A description of the context in which the error occurred.\n\n### #context=\n\n def context=(value) -\u003e ::Google::Cloud::ErrorReporting::V1beta1::ErrorContext\n\n**Parameter**\n\n- **value** ([::Google::Cloud::ErrorReporting::V1beta1::ErrorContext](./Google-Cloud-ErrorReporting-V1beta1-ErrorContext)) --- Optional. A description of the context in which the error occurred. \n**Returns**\n\n- ([::Google::Cloud::ErrorReporting::V1beta1::ErrorContext](./Google-Cloud-ErrorReporting-V1beta1-ErrorContext)) --- Optional. A description of the context in which the error occurred.\n\n### #event_time\n\n def event_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::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 is used. If provided, the time must not exceed the [logs retention\n period](https://cloud.google.com/logging/quotas#logs_retention_periods) in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned.\n\n### #event_time=\n\n def event_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::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 is used. If provided, the time must not exceed the [logs retention\nperiod](https://cloud.google.com/logging/quotas#logs_retention_periods) in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned. \n**Returns**\n\n- ([::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 is used. If provided, the time must not exceed the [logs retention\n period](https://cloud.google.com/logging/quotas#logs_retention_periods) in the past, or be more than 24 hours in the future. If an invalid time is provided, then an error is returned.\n\n### #message\n\n def message() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The error message.\n If no `context.reportLocation` is provided, the message must contain a\n header (typically consisting of the exception type name and an error\n message) and an exception stack trace in one of the supported programming\n languages and formats.\n Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\n Supported stack trace formats are:\n\n - **Java** : Must be the return value of [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).\n - **Python** : Must be the return value of [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).\n - **JavaScript** : Must be the value of [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned by V8.\n - **Ruby** : Must contain frames returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).\n - **C#** : Must be the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).\n - **PHP** : Must be prefixed with `\"PHP (Notice|Parse error|Fatal\n error|Warning): \"` and contain the result of [`(string)$exception`](https://php.net/manual/en/exception.tostring.php).\n - **Go** : Must be the return value of [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).\n\n### #message=\n\n def message=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The error message.\n If no `context.reportLocation` is provided, the message must contain a\n header (typically consisting of the exception type name and an error\n message) and an exception stack trace in one of the supported programming\n languages and formats.\n Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\n Supported stack trace formats are:\n - **Java** : Must be the return value of [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).\n - **Python** : Must be the return value of [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).\n - **JavaScript** : Must be the value of [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned by V8.\n - **Ruby** : Must contain frames returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).\n - **C#** : Must be the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).\n - **PHP** : Must be prefixed with `\"PHP (Notice|Parse error|Fatal\n error|Warning): \"` and contain the result of [`(string)$exception`](https://php.net/manual/en/exception.tostring.php).\n- **Go** : Must be the return value of [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). \n**Returns**\n\n- (::String) --- Required. The error message.\n If no `context.reportLocation` is provided, the message must contain a\n header (typically consisting of the exception type name and an error\n message) and an exception stack trace in one of the supported programming\n languages and formats.\n Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\n Supported stack trace formats are:\n\n - **Java** : Must be the return value of [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).\n - **Python** : Must be the return value of [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).\n - **JavaScript** : Must be the value of [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned by V8.\n - **Ruby** : Must contain frames returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).\n - **C#** : Must be the return value of [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).\n - **PHP** : Must be prefixed with `\"PHP (Notice|Parse error|Fatal\n error|Warning): \"` and contain the result of [`(string)$exception`](https://php.net/manual/en/exception.tostring.php).\n - **Go** : Must be the return value of [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).\n\n### #service_context\n\n def service_context() -\u003e ::Google::Cloud::ErrorReporting::V1beta1::ServiceContext\n\n**Returns**\n\n- ([::Google::Cloud::ErrorReporting::V1beta1::ServiceContext](./Google-Cloud-ErrorReporting-V1beta1-ServiceContext)) --- Required. The service context in which this error has occurred.\n\n### #service_context=\n\n def service_context=(value) -\u003e ::Google::Cloud::ErrorReporting::V1beta1::ServiceContext\n\n**Parameter**\n\n- **value** ([::Google::Cloud::ErrorReporting::V1beta1::ServiceContext](./Google-Cloud-ErrorReporting-V1beta1-ServiceContext)) --- Required. The service context in which this error has occurred. \n**Returns**\n\n- ([::Google::Cloud::ErrorReporting::V1beta1::ServiceContext](./Google-Cloud-ErrorReporting-V1beta1-ServiceContext)) --- Required. The service context in which this error has occurred."]]