class WavefrontCommandSpy
Define the spy command.
Public Instance Methods
_commands()
click to toggle source
# File lib/wavefront-cli/commands/spy.rb, line 16 def _commands ["points #{_common_opts} [-T tag_key...] [-H host]", "histograms #{_common_opts} [-T tag_key...] [-H host]", "spans #{_common_opts} [-T tag_key...] [-H host]", "ids #{_common_opts} [-y type]"] end
_common_opts()
click to toggle source
# File lib/wavefront-cli/commands/spy.rb, line 12 def _common_opts "#{CMN} [-e timeout] [-p prefix] [-r rate] [-m]" end
_options()
click to toggle source
# File lib/wavefront-cli/commands/spy.rb, line 23 def _options [common_options, '-e, --end-after=SECONDS stop spying after (approximately) the given ' \ 'number of seconds', '-m, --timestamp prefix each block of output with the current ' \ 'time', '-r, --rate=NUMBER sampling rate to use, from 0.01 to 0.5 ' \ '(default 0.01)', '-p, --prefix=STRING only show metric names beginning with given ' \ 'string', '-H, --host=STRING only show metrics from given host', '-T, --tag-key=TAG only show metrics with the given point tag key', '-y, --type=STRING one of METRIC, SPAN, HOST, or STRING'] end
description()
click to toggle source
# File lib/wavefront-cli/commands/spy.rb, line 8 def description 'monitor traffic going into Wavefront' end