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) ⇒ Object



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

def post(duration, label)
  puts "Sending test data from #{label} suite for app #{StatsdTestHarness.config.app_name}..."
  client.timing(
    "#{StatsdTestHarness.config.namespace}.#{StatsdTestHarness.config.app_name}.#{label}.duration",
    duration
  )
end