Error Reporting V1beta1 API - Class Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent (v0.12.0)

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
Returns

#context=

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

#event_time

def event_time() -> ::Google::Protobuf::Timestamp
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.

#event_time=

def event_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • 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

def message() -> ::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:

#message=

def message=(value) -> ::String
Parameter
  • 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:

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:

#service_context

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

#service_context=

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