Class: WavefrontDisplay::Proxy
- Inherits:
-
Base
- Object
- Base
- WavefrontDisplay::Proxy
show all
- Defined in:
- lib/wavefront-cli/display/proxy.rb
Overview
Format human-readable output for proxies.
Constant Summary
WavefrontCli::Constants::ALL_PAGE_SIZE, WavefrontCli::Constants::DEFAULT_CONFIG, WavefrontCli::Constants::DEFAULT_OPTS, WavefrontCli::Constants::EVENT_STATE_DIR, WavefrontCli::Constants::HUMAN_TIME_FORMAT, WavefrontCli::Constants::HUMAN_TIME_FORMAT_MS, WavefrontCli::Constants::SEARCH_SPLIT
Instance Attribute Summary
Attributes inherited from Base
#data, #options, #raw
Instance Method Summary
collapse
Methods inherited from Base
#_prioritize_keys, #display_brief_freetext_results, #do_delete, #do_import, #do_list_fields, #do_queries, #do_search, #do_search_brief, #do_search_fields, #do_tag_add, #do_tag_clear, #do_tag_delete, #do_tag_pathsearch, #do_tag_set, #do_tags, #do_undelete, #drop_fields, #filter_data, #filter_fields_as_arr, #freetext_keys, #friendly_name, #human_time, #index_of_final_item, #initialize, #key_width, #long_output, #multicolumn, #pagination_line, #prioritize_keys, #priority_keys, #quoted, #readable_time, #readable_time_arr, #run, #run_error, #run_list, #run_search, #search_display_keys, #search_identifier_key, #time_formats
Instance Method Details
#do_describe ⇒ Object
20
21
22
23
|
# File 'lib/wavefront-cli/display/proxy.rb', line 20
def do_describe
readable_time(:lastCheckInTime)
long_output
end
|
#do_list ⇒ Object
10
11
12
13
|
# File 'lib/wavefront-cli/display/proxy.rb', line 10
def do_list
filter_inactive_proxies! if options[:active]
super
end
|
#do_list_brief ⇒ Object
15
16
17
18
|
# File 'lib/wavefront-cli/display/proxy.rb', line 15
def do_list_brief
filter_inactive_proxies! if options[:active]
super
end
|
#do_shutdown ⇒ Object
29
30
31
|
# File 'lib/wavefront-cli/display/proxy.rb', line 29
def do_shutdown
puts "Requested shutdown of proxy '#{options[:'<id>']}'."
end
|
#do_versions ⇒ Object
25
26
27
|
# File 'lib/wavefront-cli/display/proxy.rb', line 25
def do_versions
multicolumn(:id, :version, :name)
end
|