Пример #1
0
 def influx_records(self, data, curtime):
     rate = float(data)
     point = get_influx_point(self.name,
                         {'click_time': curtime},
                         {'value': rate}
                 )
     return [point]
Пример #2
0
 def influx_records(self, data, curtime):
     points = []
     for d in data.split(','):
         t, l = d.split(':')
         point = get_influx_point(
             self.name,
             {
                 'click_time': curtime,
                 'thread': t
             },
             {'value': float(l)}
         )
         points.append(point)
     return points