docs: def send_point_data(events, additional):
      """creates data point payloads and sends them to influxdb
      """
      bodies = {}
      for (site, content_id), count in events.items():
          if not len(site) or not len(content_id):
              continue
  
          # influxdb will take an array of arrays of values, cutting down on the number of requests
          # needed to be sent to it wo write data
          bodies.setdefault(site, [])
  
          # get additional info
          event, path = additional.get((site, content_id), (None, None))
  
          # append the point
          bodies[site].append([content_id, event, path, count])
  
      for site, points in bodies.items():
          # send payload to influxdb
          try:
              data = [{
                  "name": site,
                  "columns": ["content_id", "event", "path", "value"],
                  "points": points,
              }]
              INFLUXDB_CLIENT.write_points(data)
          except Exception as e:
              LOGGER.exception(e)