Increments one or more stats counters >>> client = StatsdClient() >>> client.increment('example.increment') >>> client.increment('example.increment', 0.5)
(self, stats, sample_rate=1)
| 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 | """ |