Class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent
- Inherits:
-
Object
- Object
- Google::Apis::ClouderrorreportingV1beta1::ErrorEvent
- 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
-
#context ⇒ Google::Apis::ClouderrorreportingV1beta1::ErrorContext
A description of the context in which an error occurred.
-
#event_time ⇒ String
Time when the event occurred as provided in the error report.
-
#message ⇒ String
The stack trace that was reported or logged by the service.
-
#service_context ⇒ Google::Apis::ClouderrorreportingV1beta1::ServiceContext
Describes a running service that sends errors.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ErrorEvent
constructor
A new instance of ErrorEvent.
-
#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) ⇒ ErrorEvent
Returns a new instance of ErrorEvent
611 612 613 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 611 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context ⇒ 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.
Corresponds to the JSON property context
604 605 606 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 604 def context @context end |
#event_time ⇒ String
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
596 597 598 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 596 def event_time @event_time end |
#message ⇒ String
The stack trace that was reported or logged by the service.
Corresponds to the JSON property message
609 610 611 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 609 def @message end |
#service_context ⇒ Google::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
589 590 591 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 589 def service_context @service_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
616 617 618 619 620 621 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 616 def update!(**args) @service_context = args[:service_context] if args.key?(:service_context) @event_time = args[:event_time] if args.key?(:event_time) @context = args[:context] if args.key?(:context) @message = args[:message] if args.key?(:message) end |