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

Method set

examples/python_example.py:41–49  ·  view source on GitHub ↗

Log set >>> client = StatsdClient() >>> client.set('example.set', "set") >>> client.set(('example.set61', 'example.set67'), "2701")

(self, stats, value)

Source from the content-addressed store, hash-verified

39 self.update_stats(stats, value, self.SC_GAUGE)
40
41 def set(self, stats, value):
42 """
43 Log set
44
45 >>> client = StatsdClient()
46 >>> client.set('example.set', "set")
47 >>> client.set(('example.set61', 'example.set67'), "2701")
48 """
49 self.update_stats(stats, value, self.SC_SET)
50
51 def increment(self, stats, sample_rate=1):
52 """

Callers

nothing calls this directly

Calls 1

update_statsMethod · 0.95

Tested by

no test coverage detected