Class: Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouderrorreporting_v1beta1/classes.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb

Overview

An error event which is reported to the Error Reporting system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReportedErrorEvent

Returns a new instance of ReportedErrorEvent



198
199
200
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 198

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contextGoogle::Apis::ClouderrorreportingV1beta1::ErrorContext

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



155
156
157
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 155

def context
  @context
end

#event_timeString

[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

Returns:

  • (String)


196
197
198
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 196

def event_time
  @event_time
end

#messageString

[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)


183
184
185
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 183

def message
  @message
end

#service_contextGoogle::Apis::ClouderrorreportingV1beta1::ServiceContext

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



189
190
191
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 189

def service_context
  @service_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
206
207
208
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 203

def update!(**args)
  @context = args[:context] if args.key?(:context)
  @message = args[:message] if args.key?(:message)
  @service_context = args[:service_context] if args.key?(:service_context)
  @event_time = args[:event_time] if args.key?(:event_time)
end