Class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent

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 returned by 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) ⇒ ErrorEvent

Returns a new instance of ErrorEvent.


117
118
119
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 117

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


97
98
99
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 97

def context
  @context
end

#event_timeString

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. Corresponds to the JSON property eventTime

Returns:

  • (String)

104
105
106
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 104

def event_time
  @event_time
end

#messageString

The stack trace that was reported or logged by the service. Corresponds to the JSON property message

Returns:

  • (String)

109
110
111
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 109

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


115
116
117
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 115

def service_context
  @service_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


122
123
124
125
126
127
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 122

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