Class: Google::Apis::MonitoringV3::CreateTimeSeriesSummary

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

Summary of the result of a failed request to write data to a time series.

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

Returns a new instance of CreateTimeSeriesSummary.



837
838
839
# File 'generated/google/apis/monitoring_v3/classes.rb', line 837

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

Instance Attribute Details

#errorsArray<Google::Apis::MonitoringV3::Error>

The number of points that failed to be written. Order is not guaranteed. Corresponds to the JSON property errors



825
826
827
# File 'generated/google/apis/monitoring_v3/classes.rb', line 825

def errors
  @errors
end

#success_point_countFixnum

The number of points that were successfully written. Corresponds to the JSON property successPointCount

Returns:

  • (Fixnum)


830
831
832
# File 'generated/google/apis/monitoring_v3/classes.rb', line 830

def success_point_count
  @success_point_count
end

#total_point_countFixnum

The number of points in the request. Corresponds to the JSON property totalPointCount

Returns:

  • (Fixnum)


835
836
837
# File 'generated/google/apis/monitoring_v3/classes.rb', line 835

def total_point_count
  @total_point_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



842
843
844
845
846
# File 'generated/google/apis/monitoring_v3/classes.rb', line 842

def update!(**args)
  @errors = args[:errors] if args.key?(:errors)
  @success_point_count = args[:success_point_count] if args.key?(:success_point_count)
  @total_point_count = args[:total_point_count] if args.key?(:total_point_count)
end