Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineLoggingErrorContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

A description of the context in which an error occurred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineLoggingErrorContext

Returns a new instance of GoogleCloudDiscoveryengineLoggingErrorContext.



503
504
505
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 503

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#http_requestGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineLoggingHttpRequestContext

HTTP request data that is related to a reported error. Corresponds to the JSON property httpRequest



495
496
497
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 495

def http_request
  @http_request
end

#report_locationGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineLoggingSourceLocation

Indicates a location in the source code of the service for which errors are reported. Corresponds to the JSON property reportLocation



501
502
503
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 501

def report_location
  @report_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



508
509
510
511
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 508

def update!(**args)
  @http_request = args[:http_request] if args.key?(:http_request)
  @report_location = args[:report_location] if args.key?(:report_location)
end