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
#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 |
# File 'lib/wavefront-cli/commands/alert.rb', line 10 def _commands ["list #{CMN} [-al] [-f format] [-o offset] [-L limit]", "firing #{CMN} [-f format] [-o offset] [-L limit]", "snoozed #{CMN} [-f format] [-o offset] [-L limit]", "describe #{CMN} [-f format] [-v version] <id>", "delete #{CMN} <id>", "undelete #{CMN} <id>", "history #{CMN} [-f format] [-o offset] [-L limit] <id>", "import #{CMN} <file>", "snooze #{CMN} [-T time] <id>", "update #{CMN} <key=value> <id>", "unsnooze #{CMN} <id>", "search #{CMN} [-al] [-f format] [-o offset] [-L limit] <condition>...", "tags #{CMN} [-f format] <id>", "tag set #{CMN} <id> <tag>...", "tag clear #{CMN} <id>", "tag add #{CMN} <id> <tag>", "tag delete #{CMN} <id> <tag>", "currently #{CMN} [-f format] <state>", "queries #{CMN} [-f format] [-b]", "summary #{CMN} [-f format] [-a]"] end |
#_options ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/wavefront-cli/commands/alert.rb', line 33 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', '-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 |