Class: Google::Apis::MonitoringV3::Error
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::Error
- 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
-
#point_count ⇒ Fixnum
The number of points that couldn't be written because of status.
-
#status ⇒ Google::Apis::MonitoringV3::Status
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Error
constructor
A new instance of Error.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Error
Returns a new instance of Error.
1400 1401 1402 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1400 def initialize(**args) update!(**args) end |
Instance Attribute Details
#point_count ⇒ Fixnum
The number of points that couldn't be written because of status.
Corresponds to the JSON property pointCount
1388 1389 1390 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1388 def point_count @point_count end |
#status ⇒ Google::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
1398 1399 1400 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1398 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1405 1406 1407 1408 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1405 def update!(**args) @point_count = args[:point_count] if args.key?(:point_count) @status = args[:status] if args.key?(:status) end |