Class: Google::Apis::MonitoringV3::Error

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

Detailed information about an error category.

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) ⇒ Error

Returns a new instance of Error.



1083
1084
1085
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1083

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

Instance Attribute Details

#point_countFixnum

The number of points that couldn't be written because of status. Corresponds to the JSON property pointCount

Returns:

  • (Fixnum)


1071
1072
1073
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1071

def point_count
  @point_count
end

#statusGoogle::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 status



1081
1082
1083
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1081

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1088
1089
1090
1091
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1088

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