Class: WavefrontCommandDashboard

Inherits:
WavefrontCommandBase show all
Defined in:
lib/wavefront-cli/commands/dashboard.rb

Overview

Define the dashboard command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#acl_commands, #commands, #common_options, #description, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #thing, #things, #word

Instance Method Details

#_commandsObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/wavefront-cli/commands/dashboard.rb', line 8

def _commands
  ["list #{CMN} [-alN] [-O fields] [-o offset] [-L limit]",
   "describe #{CMN} [-v version] <id>",
   "dump #{CMN}",
   "import #{CMN} [-uU] <file>",
   "set #{CMN} <key=value> <id>",
   "delete #{CMN} <id>",
   "undelete #{CMN} <id>",
   "history #{CMN} [-o offset] [-L limit] <id>",
   "search #{CMN} [-al] [-o offset] [-L limit] [-O fields] <condition>...",
   "queries #{CMN} [-b] [<id>]",
   "favs #{CMN}",
   "fav #{CMN} <id>",
   "unfav #{CMN} <id>",
   acl_commands,
   tag_commands]
end

#_optionsObject



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/wavefront-cli/commands/dashboard.rb', line 26

def _options
  [common_options,
   "-l, --long               list #{things} in detail",
   "-a, --all                list all #{things}",
   "-o, --offset=n           start list from nth #{thing} or revision",
   "-L, --limit=COUNT        number of #{things} or revisions to list",
   '-O, --fields=F1,F2,...   only show given fields',
   "-u, --update             update an existing #{thing}",
   "-U, --upsert             import new or update existing #{thing}",
   '-T, --time=SECONDS       how long to snooze (default 3600)',
   "-v, --version=INTEGER    version of #{thing}",
   "-b, --brief              do not show #{thing} names",
   "-N, --no-system          do not show system-owned #{things}"]
end