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

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



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

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)


1075
1076
1077
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1075

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



1085
1086
1087
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1085

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1092
1093
1094
1095
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1092

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