class Google::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.

Attributes

http_request[RW]

HTTP request data that is related to a reported error. 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 `httpRequest` @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]

report_location[RW]

Indicates a location in the source code of the service for which errors are reported. `functionName` must be provided by the application when reporting an error, unless the error report contains a `message` with a supported exception stack trace. All fields are optional for the later case. Corresponds to the JSON property `reportLocation` @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation]

source_references[RW]

Source code that was used to build the executable which has caused the given error message. Corresponds to the JSON property `sourceReferences` @return [Array<Google::Apis::ClouderrorreportingV1beta1::SourceReference>]

user[RW]

The user who caused or was affected by the crash. This can be a user ID, an email address, or an arbitrary token that uniquely identifies the user. When sending an error report, leave this field empty if the user was not logged in. In this case the Error Reporting system will use other data, such as remote IP address, to distinguish affected users. See `affected_users_count` in ` ErrorGroupStats`. Corresponds to the JSON property `user` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/clouderrorreporting_v1beta1/classes.rb, line 75
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/clouderrorreporting_v1beta1/classes.rb, line 80
def update!(**args)
  @http_request = args[:http_request] if args.key?(:http_request)
  @report_location = args[:report_location] if args.key?(:report_location)
  @source_references = args[:source_references] if args.key?(:source_references)
  @user = args[:user] if args.key?(:user)
end