MCPcopy Index your code
hub / github.com/statsd/statsd / increment

Method increment

examples/python_example.py:51–59  ·  view source on GitHub ↗

Increments one or more stats counters >>> client = StatsdClient() >>> client.increment('example.increment') >>> client.increment('example.increment', 0.5)

(self, stats, sample_rate=1)

Source from the content-addressed store, hash-verified

49 self.update_stats(stats, value, self.SC_SET)
50
51 def increment(self, stats, sample_rate=1):
52 """
53 Increments one or more stats counters
54
55 >>> client = StatsdClient()
56 >>> client.increment('example.increment')
57 >>> client.increment('example.increment', 0.5)
58 """
59 self.count(stats, 1, sample_rate)
60
61 def decrement(self, stats, sample_rate=1):
62 """

Callers

nothing calls this directly

Calls 1

countMethod · 0.95

Tested by

no test coverage detected