summaryrefslogtreecommitdiffstats
path: root/gstatsd/test.py
blob: 824a323a8dc874d1277854b051c92ad0612d5599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()