Method: Datadog::Statsd#count
- Defined in:
- lib/datadog/statsd.rb
#count(stat, count, opts = EMPTY_OPTIONS) ⇒ Object
Sends an arbitrary count for the given stat to the statsd server.
220 221 222 223 |
# File 'lib/datadog/statsd.rb', line 220 def count(stat, count, opts = EMPTY_OPTIONS) opts = { sample_rate: opts } if opts.is_a?(Numeric) send_stats(stat, count, COUNTER_TYPE, opts) end |