Class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext
- Inherits:
-
Object
- Object
- Google::Apis::ClouderrorreportingV1beta1::ErrorContext
- Defined in:
- generated/google/apis/clouderrorreporting_v1beta1/classes.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#http_request ⇒ Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext
HTTP request data that is related to a reported error.
-
#report_location ⇒ Google::Apis::ClouderrorreportingV1beta1::SourceLocation
Indicates a location in the source code of the service for which errors are reported.
-
#source_references ⇒ Array<Google::Apis::ClouderrorreportingV1beta1::SourceReference>
Source code that was used to build the executable which has caused the given error message.
-
#user ⇒ String
The user who caused or was affected by the crash.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ErrorContext
constructor
A new instance of ErrorContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ErrorContext
Returns a new instance of ErrorContext
79 80 81 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 79 def initialize(**args) update!(**args) end |
Instance Attribute Details
#http_request ⇒ Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext
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
51 52 53 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 51 def http_request @http_request end |
#report_location ⇒ Google::Apis::ClouderrorreportingV1beta1::SourceLocation
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
59 60 61 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 59 def report_location @report_location end |
#source_references ⇒ Array<Google::Apis::ClouderrorreportingV1beta1::SourceReference>
Source code that was used to build the executable which has
caused the given error message.
Corresponds to the JSON property sourceReferences
65 66 67 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 65 def source_references @source_references end |
#user ⇒ String
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
77 78 79 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 77 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
84 85 86 87 88 89 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 84 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 |