Class: WavefrontCli::Spy
Overview
Spy on metrics being ingested into Wavefront
Constant Summary
Constants included from Constants
Constants::ALL_PAGE_SIZE, Constants::DEFAULT_CONFIG, Constants::DEFAULT_OPTS, Constants::EVENT_STATE_DIR, Constants::HUMAN_TIME_FORMAT, Constants::HUMAN_TIME_FORMAT_MS, Constants::SEARCH_SPLIT
Instance Attribute Summary
Attributes inherited from Base
#klass, #klass_word, #options, #wf
Instance Method Summary collapse
- #display_class ⇒ Object
- #do_histograms ⇒ Object
- #do_ids ⇒ Object
- #do_points ⇒ Object
- #do_spans ⇒ Object
-
#key_opts ⇒ Object
Passing an empty array to the Spy methods sets up a filter for things with an empty tag key.
- #no_api_response ⇒ Object
Methods inherited from Base
#_sdk_class, #cannot_noop!, #check_response_blocks, #check_status, #cli_output_class, #conds_to_query, #descriptive_name, #dispatch, #display, #display_api_error, #display_no_api_response, #do_delete, #do_describe, #do_dump, #do_import, #do_list, #do_search, #do_set, #do_undelete, #dump_json, #dump_yaml, #extract_values, #failed_validation_message, #format_var, #handle_error, #handle_response, #hcl_fields, #import_to_create, #initialize, #item_dump_call, #load_display_class, #matching_method, #method_word_list, #mk_creds, #mk_opts, #name_of_do_method, #ok_exit, #one_or_all, #options_and_exit, #parseable_output, #range_hash, #require_sdk_class, #run, #search_key, #smart_delete, #smart_delete_message, #status_error_handler, #unsupported_format_message, #validate_id, #validate_input, #validate_opts, #validate_tags, #validator_exception, #validator_method, #warning_message
Constructor Details
This class inherits a constructor from WavefrontCli::Base
Instance Method Details
#display_class ⇒ Object
39 40 41 |
# File 'lib/wavefront-cli/spy.rb', line 39 def display_class 'WavefrontDisplay::Spy' end |
#do_histograms ⇒ Object
18 19 20 |
# File 'lib/wavefront-cli/spy.rb', line 18 def do_histograms wf.histograms(rate, fn_args, fn_opts) end |
#do_ids ⇒ Object
26 27 28 29 30 |
# File 'lib/wavefront-cli/spy.rb', line 26 def do_ids wf.ids(rate, { prefix: [:prefix], type: [:type] }, fn_opts) end |
#do_points ⇒ Object
14 15 16 |
# File 'lib/wavefront-cli/spy.rb', line 14 def do_points wf.points(rate, fn_args, fn_opts) end |
#do_spans ⇒ Object
22 23 24 |
# File 'lib/wavefront-cli/spy.rb', line 22 def do_spans wf.spans(rate, fn_args, fn_opts) end |
#key_opts ⇒ Object
Passing an empty array to the Spy methods sets up a filter for things with an empty tag key. So we won’t.
35 36 37 |
# File 'lib/wavefront-cli/spy.rb', line 35 def key_opts [:tagkey].empty? ? nil : [:tagkey] end |
#no_api_response ⇒ Object
10 11 12 |
# File 'lib/wavefront-cli/spy.rb', line 10 def no_api_response %w[do_points do_histograms do_spans do_ids] end |