'Return samples for the meter.
:param q: Filter rules for the data to be returned.
:param limit: Maximum number of samples to return.'

@wsme_pecan.wsexpose([OldSample], [base.Query], int)
def get_all(self, q=None, limit=None):

    rbac.enforce('get_samples', pecan.request)
    q = (q or [])
    limit = v2_utils.enforce_limit(limit)
    kwargs = v2_utils.query_to_kwargs(q, storage.SampleFilter.__init__)
    kwargs['meter'] = self.meter_name
    f = storage.SampleFilter(**kwargs)
    return [OldSample.from_db_model(e) for e in pecan.request.storage_conn.get_samples(f, limit=limit)]
