Class: Google::Apis::MonitoringV3::CollectdValueError

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

Overview

Describes the error status for values that were not written.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CollectdValueError

Returns a new instance of CollectdValueError.



624
625
626
# File 'generated/google/apis/monitoring_v3/classes.rb', line 624

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

Instance Attribute Details

#errorGoogle::Apis::MonitoringV3::Status

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 (https://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 error



616
617
618
# File 'generated/google/apis/monitoring_v3/classes.rb', line 616

def error
  @error
end

#indexFixnum

The zero-based index in CollectdPayload.values within the parent CreateCollectdTimeSeriesRequest.collectd_payloads. Corresponds to the JSON property index

Returns:

  • (Fixnum)


622
623
624
# File 'generated/google/apis/monitoring_v3/classes.rb', line 622

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



629
630
631
632
# File 'generated/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)
end