# Error Reporting V1beta1 API - Class Google::Cloud::ErrorReporting::V1beta1::ErrorEvent (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.1 0.14.0 0.13.1 0.12.0 0.11.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.5 Reference documentation and code samples for the Error Reporting V1beta1 API class Google::Cloud::ErrorReporting::V1beta1::ErrorEvent.

An error event which is returned by 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

**Returns**

- ([::Google::Cloud::ErrorReporting::V1beta1::ErrorContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ErrorContext)) --- Data about the context in which the error occurred.

### #context=

    def context=(value) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorContext

**Parameter**

- **value** ([::Google::Cloud::ErrorReporting::V1beta1::ErrorContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ErrorContext)) --- Data about the context in which the error occurred.
**Returns**

- ([::Google::Cloud::ErrorReporting::V1beta1::ErrorContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ErrorContext)) --- Data about the context in which the error occurred.

### #event_time

    def event_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Protobuf-Timestamp)) --- Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

### #event_time=

    def event_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Protobuf-Timestamp)) --- Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Protobuf-Timestamp)) --- Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

### #message

    def message() -> ::String

**Returns**

- (::String) --- The stack trace that was reported or logged by the service.

### #message=

    def message=(value) -> ::String

**Parameter**

- **value** (::String) --- The stack trace that was reported or logged by the service.
**Returns**

- (::String) --- The stack trace that was reported or logged by the service.

### #service_context

    def service_context() -> ::Google::Cloud::ErrorReporting::V1beta1::ServiceContext

**Returns**

- ([::Google::Cloud::ErrorReporting::V1beta1::ServiceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ServiceContext)) --- The `ServiceContext` for which this error was reported.

### #service_context=

    def service_context=(value) -> ::Google::Cloud::ErrorReporting::V1beta1::ServiceContext

**Parameter**

- **value** ([::Google::Cloud::ErrorReporting::V1beta1::ServiceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ServiceContext)) --- The `ServiceContext` for which this error was reported.
**Returns**

- ([::Google::Cloud::ErrorReporting::V1beta1::ServiceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest/Google-Cloud-ErrorReporting-V1beta1-ServiceContext)) --- The `ServiceContext` for which this error was reported.