Class: StatsdTestHarness::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/statsd_test_harness/client.rb

Instance Method Summary collapse

Instance Method Details

#post(duration, label, successful, send_failures = true) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/statsd_test_harness/client.rb', line 4

def post(duration, label, successful, send_failures=true)
  type = successful ? "success" : "fail"
  if successful || send_failures
    puts "Sending '#{type}' test data from #{label} suite for app #{StatsdTestHarness.config.app_name}..."
    client.timing("#{bucket}.#{label}.#{type}", duration)
  end
end