Class: Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent
- Inherits:
-
Object
- Object
- Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouderrorreporting_v1beta1/classes.rb,
lib/google/apis/clouderrorreporting_v1beta1/representations.rb,
lib/google/apis/clouderrorreporting_v1beta1/representations.rb
Overview
An error event which is reported to 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
Optional.
-
#message ⇒ String
Required.
-
#service_context ⇒ Google::Apis::ClouderrorreportingV1beta1::ServiceContext
Describes a running service that sends errors.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportedErrorEvent
constructor
A new instance of ReportedErrorEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReportedErrorEvent
Returns a new instance of ReportedErrorEvent.
437 438 439 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 437 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
398 399 400 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 398 def context @context end |
#event_time ⇒ String
Optional. Time when the event occurred. If not provided, the time when the
event was received by the Error Reporting system is used. If provided, the
time must not exceed the logs retention period in the past, or be more than 24 hours
in the future. If an invalid time is provided, then an error is returned.
Corresponds to the JSON property eventTime
407 408 409 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 407 def event_time @event_time end |
#message ⇒ String
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: * Java*
*: Must be the return value of Throwable.printStackTrace(). *
**Python: Must be the return value of traceback.format_exc(). * JavaScript*
*: Must be the value of error.stack as returned by V8. * **Ruby: Must contain frames returned by
Exception.backtrace. * C#: Must be the return value of Exception.ToString(). * **
PHP*: Must start with PHP (Notice|Parse error|Fatal error|Warning) and
contain the result of (string)$exception. * **Go*: Must be the return value of runtime.Stack(
).
Corresponds to the JSON property message
429 430 431 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 429 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
435 436 437 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 435 def service_context @service_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
442 443 444 445 446 447 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 442 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 |