Class: WavefrontCommandAlert
- Inherits:
-
WavefrontCommandBase
- Object
- WavefrontCommandBase
- WavefrontCommandAlert
- Defined in:
- lib/wavefront-cli/commands/alert.rb
Overview
Define the Alert command
Instance Method Summary collapse
Methods inherited from WavefrontCommandBase
#acl_commands, #commands, #common_options, #docopt, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #word
Instance Method Details
#_commands ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/wavefront-cli/commands/alert.rb', line 10 def _commands ["list #{CMN} [-al] [-O fields] [-o offset] [-L limit]", "firing #{CMN} [-o offset] [-L limit]", "snoozed #{CMN} [-o offset] [-L limit]", "describe #{CMN} [-v version] <id>", "delete #{CMN} <id>", "clone #{CMN} [-v version] <id>", "undelete #{CMN} <id>", "history #{CMN} [-o offset] [-L limit] <id>", "clone #{CMN} [-v version] <id>", "latest #{CMN} <id>", "import #{CMN} <file>", "snooze #{CMN} [-T time] <id>", "update #{CMN} <key=value> <id>", "unsnooze #{CMN} <id>", "search #{CMN} [-al] [-o offset] [-L limit] <condition>...", "tags #{CMN} <id>", "tag set #{CMN} <id> <tag>...", "tag clear #{CMN} <id>", "tag add #{CMN} <id> <tag>", "tag delete #{CMN} <id> <tag>", "currently #{CMN} <state>", "queries #{CMN} [-b] [<id>]", "install #{CMN} <id>", "uninstall #{CMN} <id>", acl_commands, "summary #{CMN} [-a]"] end |
#_options ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/wavefront-cli/commands/alert.rb', line 39 def [, '-l, --long list alerts in detail', '-a, --all list all alerts', '-v, --version=INTEGER describe only this version of alert', '-o, --offset=n start from nth alert', '-L, --limit=COUNT number of alerts to list', '-O, --fields=F1,F2,... only show given fields', '-T, --time=SECONDS how long to snooze (default 3600)', '-b, --brief do not show alert names', '-f, --format=STRING output format'] end |
#description ⇒ Object
6 7 8 |
# File 'lib/wavefront-cli/commands/alert.rb', line 6 def description 'view and manage alerts' end |