Class: Wavefront::Report
- Defined in:
- lib/wavefront-sdk/report.rb
Overview
This class helps you send points direct to the Wavefront API.
The points are prepped in the BaseWrite class, which this extends. This class provides the transport mechanism.
Instance Attribute Summary
Attributes inherited from BaseWrite
Attributes inherited from Base
#conn, #debug, #logger, #net, #noop, #opts, #update_keys, #verbose
Instance Method Summary collapse
- #api_path ⇒ Object
- #really_send_point(point) ⇒ Object
- #write(points = [], _openclose = true, prefix = nil) ⇒ Object
Methods inherited from BaseWrite
#hash_to_wf, #paths_to_deltas, #post_initialize, #prepped_points, #send_point, #setup_options, #summary_string, #valid_point?, #write_delta
Methods inherited from Base
#api_base, #api_delete, #api_get, #api_post, #api_put, #everything, #hash_for_update, #initialize, #log, #mk_conn, #print_message, #respond, #time_to_ms
Methods included from Mixins
#parse_relative_time, #parse_time, #relative_time, #time_multiplier
Methods included from Validators
#wf_alert_id?, #wf_alert_severity?, #wf_cloudintegration_id?, #wf_dashboard_id?, #wf_derivedmetric_id?, #wf_epoch?, #wf_event_id?, #wf_granularity?, #wf_integration_id?, #wf_link_id?, #wf_link_template?, #wf_maintenance_window_id?, #wf_message_id?, #wf_metric_name?, #wf_ms_ts?, #wf_name?, #wf_notificant_id?, #wf_point?, #wf_point_tag?, #wf_point_tags?, #wf_proxy_id?, #wf_savedsearch_entity?, #wf_savedsearch_id?, #wf_source_id?, #wf_string?, #wf_tag?, #wf_ts?, #wf_user_id?, #wf_value?, #wf_version?, #wf_webhook_id?
Constructor Details
This class inherits a constructor from Wavefront::Base
Instance Method Details
#api_path ⇒ Object
11 12 13 |
# File 'lib/wavefront-sdk/report.rb', line 11 def api_path '/report' end |
#really_send_point(point) ⇒ Object
19 20 21 |
# File 'lib/wavefront-sdk/report.rb', line 19 def really_send_point(point) api_post('/?f=graphite_v2', point, 'application/octet-stream') end |
#write(points = [], _openclose = true, prefix = nil) ⇒ Object
15 16 17 |
# File 'lib/wavefront-sdk/report.rb', line 15 def write(points = [], _openclose = true, prefix = nil) _write_loop(prepped_points(points, prefix)) end |