Method: Regrapher::Client#increment

Defined in:
lib/regrapher/client.rb

#increment(name, opts = {}) ⇒ Object

Sends an increment (count = 1) for the given metric.

Parameters:

  • name (String)

    metric name

  • opts (Hash) (defaults to: {})

    the options to create the metric with

Options Hash (opts):

  • :sample_rate (Numeric)

    sample rate, 1 for always

  • :tags (Array<String>)

    An array of tags

See Also:



36
37
38
# File 'lib/regrapher/client.rb', line 36

def increment(name, opts={})
  count(name, 1, opts)
end