Class: Google::Apis::ClouderrorreportingV1beta1::TimedCount

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouderrorreporting_v1beta1/classes.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb

Overview

The number of errors in a given time period. All numbers are approximate since the error events are sampled before counting them.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TimedCount

Returns a new instance of TimedCount



310
311
312
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 310

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

Instance Attribute Details

#countFixnum

Approximate number of occurrences in the given time period. Corresponds to the JSON property count

Returns:

  • (Fixnum)


298
299
300
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 298

def count
  @count
end

#end_timeString

End of the time period to which count refers (excluded). Corresponds to the JSON property endTime

Returns:

  • (String)


308
309
310
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 308

def end_time
  @end_time
end

#start_timeString

Start of the time period to which count refers (included). Corresponds to the JSON property startTime

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 303

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



315
316
317
318
319
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 315

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @start_time = args[:start_time] if args.key?(:start_time)
  @end_time = args[:end_time] if args.key?(:end_time)
end