summaryrefslogtreecommitdiffstats
path: root/gstatsd/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'gstatsd/test.py')
-rw-r--r--gstatsd/test.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/gstatsd/test.py b/gstatsd/test.py
new file mode 100644
index 0000000..824a323
--- /dev/null
+++ b/gstatsd/test.py
@@ -0,0 +1,22 @@
+
+from client import StatsClient
+
+
+def main():
+ cli = StatsClient()
+ for num in range(1, 11):
+ cli.timer('foo', num)
+ return
+ cli.increment('baz', 0.5)
+ cli.increment('baz', 0.5)
+ cli.timer('t3', 100, 0.5)
+ return
+
+ cli.increment('foo')
+ cli.counter(['foo', 'bar'], 2)
+ cli.timer('t1', 12)
+ cli.timer('t2', 30)
+
+if __name__ == '__main__':
+ main()
+