Class: WavefrontCli::Report

Inherits:
BaseWrite show all
Defined in:
lib/wavefront-cli/report.rb

Overview

Write metrics direct to Wavefront. Sister of WavefrontCli::Write

Constant Summary

Constants included from Constants

Constants::ALL_PAGE_SIZE, Constants::DEFAULT_OPTS, Constants::HUMAN_TIME_FORMAT, Constants::HUMAN_TIME_FORMAT_MS

Instance Attribute Summary

Attributes inherited from BaseWrite

#fmt

Attributes inherited from Base

#klass, #klass_word, #options, #wf

Instance Method Summary collapse

Methods inherited from BaseWrite

#call_write, #do_file, #do_point, #enough_fields?, #expand_dist, #extract_path, #extract_source, #extract_tags, #extract_ts, #extract_value, #line_tags, #process_input, #process_input_file, #process_line, #read_stdin, #tags_to_hash, #valid_format?, #valid_timestamp?

Methods inherited from Base

#_sdk_class, #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_tag_add, #do_tag_clear, #do_tag_delete, #do_tag_set, #do_tags, #do_undelete, #do_update, #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, #options_and_exit, #parseable_output, #range_hash, #run, #search_key, #validate_id, #validate_input, #validate_opts, #validate_tags, #validator_exception, #validator_method

Constructor Details

This class inherits a constructor from WavefrontCli::Base

Instance Method Details

#close_connectionObject



16
# File 'lib/wavefront-cli/report.rb', line 16

def close_connection; end

#open_connectionObject



14
# File 'lib/wavefront-cli/report.rb', line 14

def open_connection; end

#send_point(point) ⇒ Object



8
9
10
11
12
# File 'lib/wavefront-cli/report.rb', line 8

def send_point(point)
  call_write(point)
rescue Wavefront::Exception::InvalidEndpoint
  abort 'could not speak to API'
end