class WavefrontCli::Usage
CLI coverage for part of the v2 'usage' API. The rest is in the 'ingestionpolicy' command.
Public Instance Methods
default_start()
click to toggle source
# File lib/wavefront-cli/usage.rb, line 20 def default_start parse_time(Time.now - 60 * 60 * 24) end
do_export_csv()
click to toggle source
# File lib/wavefront-cli/usage.rb, line 14 def do_export_csv t_start = options[:start] ? parse_time(options[:start]) : default_start t_end = options[:end] ? parse_time(options[:end]) : nil wf.export_csv(t_start, t_end) end