class Google::Apis::RetailV2alpha::GoogleCloudRetailLoggingErrorLog
An error log which is reported to the Error Reporting system. This proto a superset of google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.
Attributes
A description of the context in which an error occurred. Corresponds to the JSON property `context` @return [Google::Apis::RetailV2alpha::GoogleCloudRetailLoggingErrorContext]
The error payload that is populated on LRO import APIs. Including: “google. cloud.retail.v2.ProductService.ImportProducts” “google.cloud.retail.v2. EventService.ImportUserEvents” Corresponds to the JSON property `importPayload` @return [Google::Apis::RetailV2alpha::GoogleCloudRetailLoggingImportErrorContext]
A message describing the error. Corresponds to the JSON property `message` @return [String]
The API request payload, represented as a protocol buffer. Most API request types are supported. For example: “type.googleapis.com/google.cloud.retail.v2. ProductService.CreateProductRequest” “type.googleapis.com/google.cloud.retail. v2.UserEventService.WriteUserEventRequest” Corresponds to the JSON property `requestPayload` @return [Hash<String,Object>]
The API response payload, represented as a protocol buffer. This is used to log some “soft errors”, where the response is valid but we consider there are some quality issues like unjoined events. The following API responses are supported and no PII is included: “google.cloud.retail.v2.PredictionService. Predict” “google.cloud.retail.v2.UserEventService.WriteUserEvent” “google. cloud.retail.v2.UserEventService.CollectUserEvent” Corresponds to the JSON property `responsePayload` @return [Hash<String,Object>]
Describes a running service that sends errors. Corresponds to the JSON property `serviceContext` @return [Google::Apis::RetailV2alpha::GoogleCloudRetailLoggingServiceContext]
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `status` @return [Google::Apis::RetailV2alpha::GoogleRpcStatus]
Public Class Methods
# File lib/google/apis/retail_v2alpha/classes.rb, line 154 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/retail_v2alpha/classes.rb, line 159 def update!(**args) @context = args[:context] if args.key?(:context) @import_payload = args[:import_payload] if args.key?(:import_payload) @message = args[:message] if args.key?(:message) @request_payload = args[:request_payload] if args.key?(:request_payload) @response_payload = args[:response_payload] if args.key?(:response_payload) @service_context = args[:service_context] if args.key?(:service_context) @status = args[:status] if args.key?(:status) end