'Write the points to the ES server.'

def export(self, name, columns, points):

    logger.debug('Export    {}    stats    to    ElasticSearch'.format(name))
    actions = []
    for (c, p) in zip(columns, points):
        action = {'_index': self.index, '_type': name, '_id': c, '_source': {'value': str(p), 'timestamp': datetime.now()}}
        actions.append(action)
    try:
        helpers.bulk(self.client, actions)
    except Exception as e:
        logger.error('Cannot    export    {}    stats    to    ElasticSearch    ({})'.format(name, e))
