Class: WavefrontCommandAlert
Overview
Instance Method Summary
collapse
#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
|
# File 'lib/wavefront-cli/commands/alert.rb', line 10
def _commands
["list #{CMN} [-l] [-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} [-f format] [-o offset] [-L limit] [-l] <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>",
"summary #{CMN} [-a]"]
end
|
#_options ⇒ Object
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/wavefront-cli/commands/alert.rb', line 29
def _options
[common_options,
'-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)',
'-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
|