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.


1079
1080
1081
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1079

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)

1067
1068
1069
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1067

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


1077
1078
1079
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1077

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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

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