Class: WavefrontCli::Integration
- Inherits:
-
Base
- Object
- Base
- WavefrontCli::Integration
show all
- Defined in:
- lib/wavefront-cli/integration.rb
Overview
CLI coverage for the v2 ‘integration’ API.
Constant Summary
Constants included
from Constants
Constants::ALL_PAGE_SIZE, Constants::DEFAULT_CONFIG, Constants::DEFAULT_OPTS, Constants::HUMAN_TIME_FORMAT, Constants::HUMAN_TIME_FORMAT_MS
Instance Attribute Summary
Attributes inherited from Base
#klass, #klass_word, #options, #wf
Instance Method Summary
collapse
Methods inherited from Base
#_sdk_class, #cannot_noop!, #check_status, #conds_to_query, #dispatch, #display, #display_api_error, #display_no_api_response, #do_delete, #do_describe, #do_import, #do_list, #do_search, #do_undelete, #do_update, #extract_values, #failed_validation_message, #format_var, #handle_error, #handle_response, #hcl_fields, #import_to_create, #initialize, #load_display_class, #load_file, #load_from_stdin, #mk_creds, #mk_opts, #no_api_response, #ok_exit, #one_or_all, #options_and_exit, #parseable_output, #range_hash, #run, #search_key, #smart_delete, #smart_delete_message, #validate_id, #validate_input, #validate_opts, #validate_tags, #validator_exception, #validator_method
Instance Method Details
#do_alert_install ⇒ Object
28
29
30
|
# File 'lib/wavefront-cli/integration.rb', line 28
def do_alert_install
wf.install_all_alerts(options[:'<id>'])
end
|
#do_alert_uninstall ⇒ Object
32
33
34
|
# File 'lib/wavefront-cli/integration.rb', line 32
def do_alert_uninstall
wf.uninstall_all_alerts(options[:'<id>'])
end
|
#do_install ⇒ Object
20
21
22
|
# File 'lib/wavefront-cli/integration.rb', line 20
def do_install
wf.install(options[:'<id>'])
end
|
#do_installed ⇒ Object
40
41
42
|
# File 'lib/wavefront-cli/integration.rb', line 40
def do_installed
wf.installed
end
|
#do_manifests ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/wavefront-cli/integration.rb', line 12
def do_manifests
if options[:format] == 'human'
abort 'Human-readable manifest output is not supported.'
end
wf.manifests
end
|
#do_status ⇒ Object
8
9
10
|
# File 'lib/wavefront-cli/integration.rb', line 8
def do_status
wf.status(options[:'<id>'])
end
|
#do_statuses ⇒ Object
36
37
38
|
# File 'lib/wavefront-cli/integration.rb', line 36
def do_statuses
wf.statuses
end
|
#do_uninstall ⇒ Object
24
25
26
|
# File 'lib/wavefront-cli/integration.rb', line 24
def do_uninstall
wf.uninstall(options[:'<id>'])
end
|