class Google::Apis::MonitoringV3::CollectdPayloadError

Describes the error status for payloads that were not written.

Attributes

error[RW]

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 (cloud. google.com/apis/design/errors). Corresponds to the JSON property `error` @return [Google::Apis::MonitoringV3::Status]

index[RW]

The zero-based index in CreateCollectdTimeSeriesRequest.collectd_payloads. Corresponds to the JSON property `index` @return [Fixnum]

value_errors[RW]

Records the error status for values that were not written due to an error. Failed payloads for which nothing is written will not include partial value errors. Corresponds to the JSON property `valueErrors` @return [Array<Google::Apis::MonitoringV3::CollectdValueError>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 624
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 629
def update!(**args)
  @error = args[:error] if args.key?(:error)
  @index = args[:index] if args.key?(:index)
  @value_errors = args[:value_errors] if args.key?(:value_errors)
end