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

Method count

examples/python_example.py:70–77  ·  view source on GitHub ↗

Updates one or more stats counters by arbitrary value >>> client = StatsdClient() >>> client.count('example.counter', 17)

(self, stats, value, sample_rate=1)

Source from the content-addressed store, hash-verified

68 self.count(stats, -1, sample_rate)
69
70 def count(self, stats, value, sample_rate=1):
71 """
72 Updates one or more stats counters by arbitrary value
73
74 >>> client = StatsdClient()
75 >>> client.count('example.counter', 17)
76 """
77 self.update_stats(stats, value, self.SC_COUNT, sample_rate)
78
79 def update_stats(self, stats, value, _type, sample_rate=1):
80 """

Callers 2

incrementMethod · 0.95
decrementMethod · 0.95

Calls 1

update_statsMethod · 0.95

Tested by

no test coverage detected