'Create some samples.'

def start_fixture(self):

    global LOAD_APP_KWARGS
    conf = LOAD_APP_KWARGS['conf']
    self.conn = storage.get_connection_from_config(conf)
    timestamp = datetime.datetime.utcnow()
    project_id = str(uuid.uuid4())
    self.source = str(uuid.uuid4())
    resource_metadata = {'farmed_by': 'nancy'}
    for name in ['cow', 'pig', 'sheep']:
        (resource_metadata.update({'breed': name}),)
        c = sample.Sample(name='livestock', type='gauge', unit='head', volume=int((10 * random.random())), user_id='farmerjon', project_id=project_id, resource_id=project_id, timestamp=timestamp, resource_metadata=resource_metadata, source=self.source)
        data = utils.meter_message_from_counter(c, conf.publisher.telemetry_secret)
        self.conn.record_metering_data(data)
