Permalink
Browse files

examples: python: unbreak example

After Statsd -> StatsdClient renaming example is borken.
  • Loading branch information...
1 parent 1a8bb9b commit e223710dadaa0c5f9bbb736601e2d440e17da2d3 @SaveTheRbtz committed Dec 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 examples/python_example.py
@@ -30,7 +30,7 @@ def timing(stat, time, sample_rate=1):
"""
stats = {}
stats[stat] = "%d|ms" % time
- Statsd.send(stats, sample_rate)
+ StatsdClient.send(stats, sample_rate)
@staticmethod
def increment(stats, sample_rate=1):
@@ -39,15 +39,15 @@ def increment(stats, sample_rate=1):
>>> Statsd.increment('some.int')
>>> Statsd.increment('some.int',0.5)
"""
- Statsd.update_stats(stats, 1, sample_rate)
+ StatsdClient.update_stats(stats, 1, sample_rate)
@staticmethod
def decrement(stats, sample_rate=1):
"""
Decrements one or more stats counters
>>> Statsd.decrement('some.int')
"""
- Statsd.update_stats(stats, -1, sample_rate)
+ StatsdClient.update_stats(stats, -1, sample_rate)
@staticmethod
def update_stats(stats, delta=1, sampleRate=1):
@@ -61,7 +61,7 @@ def update_stats(stats, delta=1, sampleRate=1):
for stat in stats:
data[stat] = "%s|c" % delta
- Statsd.send(data, sampleRate)
+ StatsdClient.send(data, sampleRate)
@staticmethod
def send(data, sample_rate=1):

0 comments on commit e223710

Please sign in to comment.