Method: WavefrontDisplay::Base#readable_time

Defined in:
lib/wavefront-cli/display/base.rb

#readable_time(*keys) ⇒ Object

Modify, in-place, the @data structure to make times human-readable. Automatically handles second and millisecond epoch times. Currently only operates on top-level keys.

param keys [Symbol, Array] the keys you wish to be

turned into readable times.

return [Nil]



354
355
356
# File 'lib/wavefront-cli/display/base.rb', line 354

def readable_time(*keys)
  keys.each { |k| data[k] = human_time(data[k]) if data.key?(k) }
end