Class: NetuitiveRailsAgent::ApiInteraction
- Inherits:
-
Object
- Object
- NetuitiveRailsAgent::ApiInteraction
- Defined in:
- lib/netuitive_rails_agent/api_interaction.rb
Instance Method Summary collapse
- #add_counter_sample(metric_id, val) ⇒ Object
- #add_sample(metric_id, val) ⇒ Object
- #aggregate_counter_metric(metric_id, val) ⇒ Object
- #aggregate_metric(metric_id, val) ⇒ Object
- #clear_metrics ⇒ Object
- #event(message, timestamp = Time.new, title = 'Ruby Event', level = 'Info', source = 'Ruby Agent', type = 'INFO', tags = nil) ⇒ Object
- #exception_event(exception, klass = nil, tags = nil) ⇒ Object
- #interval ⇒ Object
- #send_metrics ⇒ Object
- #stop_server ⇒ Object
Instance Method Details
#add_counter_sample(metric_id, val) ⇒ Object
11 12 13 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 11 def add_counter_sample(metric_id, val) NetuitiveRubyAPI.add_counter_sample(metric_id, val) end |
#add_sample(metric_id, val) ⇒ Object
7 8 9 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 7 def add_sample(metric_id, val) NetuitiveRubyAPI.add_sample(metric_id, val) end |
#aggregate_counter_metric(metric_id, val) ⇒ Object
19 20 21 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 19 def aggregate_counter_metric(metric_id, val) NetuitiveRubyAPI.aggregate_counter_metric(metric_id, val) end |
#aggregate_metric(metric_id, val) ⇒ Object
15 16 17 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 15 def aggregate_metric(metric_id, val) NetuitiveRubyAPI.aggregate_metric(metric_id, val) end |
#clear_metrics ⇒ Object
23 24 25 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 23 def clear_metrics NetuitiveRubyAPI.clear_metrics end |
#event(message, timestamp = Time.new, title = 'Ruby Event', level = 'Info', source = 'Ruby Agent', type = 'INFO', tags = nil) ⇒ Object
31 32 33 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 31 def event(, = Time.new, title = 'Ruby Event', level = 'Info', source = 'Ruby Agent', type = 'INFO', = nil) NetuitiveRubyAPI.event(, , title, level, source, type, ) end |
#exception_event(exception, klass = nil, tags = nil) ⇒ Object
35 36 37 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 35 def exception_event(exception, klass = nil, = nil) NetuitiveRubyAPI.exception_event(exception, klass, ) end |
#interval ⇒ Object
27 28 29 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 27 def interval NetuitiveRubyAPI.interval end |
#send_metrics ⇒ Object
3 4 5 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 3 def send_metrics NetuitiveRubyAPI.send_metrics end |
#stop_server ⇒ Object
39 40 41 |
# File 'lib/netuitive_rails_agent/api_interaction.rb', line 39 def stop_server NetuitiveRubyAPI.stop_server end |