Example #1
0
    def post(self):
        for stat_line in request.data.split():
            stat, value = stat_line.split(":")
            statsd_client._send_stat("client.{}".format(stat), value, 1)

        return "OK."
Example #2
0
    def post(self):
        for stat_line in request.data.split():
            stat, value = stat_line.split(':')
            statsd_client._send_stat('client.{}'.format(stat), value, 1)

        return "OK."