def METHOD_NAME(self, index, metric):
    data = []
    for i in range(self.args.batch_size):
        self.timestamp += datetime.timedelta(minutes=1)
        data.append({'timestamp': self.timestamp.isoformat(),
                     'value': 100})
    resp = requests.post(
        "%s/v1/metric/%s/measures" % (self.args.gnocchi_url, metric),
        data=json.dumps(data),
        headers=self.headers)
    if resp.status_code / 100 != 2:
        print('Failed POST request to measures #%d: %s' % (index,
                                                           resp.content))
        return 0
    return self.args.batch_size