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

Method decrement

examples/python_example.py:61–68  ·  view source on GitHub ↗

Decrements one or more stats counters >>> client = StatsdClient() >>> client.decrement('example.decrement')

(self, stats, sample_rate=1)

Source from the content-addressed store, hash-verified

59 self.count(stats, 1, sample_rate)
60
61 def decrement(self, stats, sample_rate=1):
62 """
63 Decrements one or more stats counters
64
65 >>> client = StatsdClient()
66 >>> client.decrement('example.decrement')
67 """
68 self.count(stats, -1, sample_rate)
69
70 def count(self, stats, value, sample_rate=1):
71 """

Callers

nothing calls this directly

Calls 1

countMethod · 0.95

Tested by

no test coverage detected