class WavefrontCommandMetric

Define the metric command.

Public Instance Methods

_commands() click to toggle source
# File lib/wavefront-cli/commands/metric.rb, line 12
def _commands
  ["describe #{CMN} [-o offset] [-g glob...] <metric>",
   "list under #{CMN} <metric>",
   "list all #{CMN}"]
end
_options() click to toggle source
# File lib/wavefront-cli/commands/metric.rb, line 18
def _options
  [common_options,
   '-o, --offset=STRING      value to start from if results > 1000',
   '-g, --glob=STRING        return sources matching this pattern']
end
description() click to toggle source
# File lib/wavefront-cli/commands/metric.rb, line 8
def description
  "get #{thing} details"
end
postscript() click to toggle source
# File lib/wavefront-cli/commands/metric.rb, line 24
def postscript
  "\nNOTE: the 'list under' and 'list all' sub-commands use the unoffical " \
    "'chart' endpoint, which is not guaranteed to remain stable.\n\n" \
    'Both commands have to make a lot of API calls, and may take a ' \
    'very long time to run.'.cmd_fold(TW, 0)
end