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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/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.



1335
1336
1337
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1335

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)


1323
1324
1325
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1323

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



1333
1334
1335
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1333

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1340
1341
1342
1343
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1340

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