def _list_samples(meter, project=None, resource=None, source=None, user=None):
 q_ts = _get_query_timestamps(flask.request.args)
 f = storage.SampleFilter(user=user, project=project, source=source, meter=meter, resource=resource, start=q_ts['start_timestamp'], end=q_ts['end_timestamp'], metaquery=_get_metaquery(flask.request.args))
 samples = flask.request.storage_conn.get_samples(f)
 jsonified = flask.jsonify(events=[s.as_dict() for s in samples])
 if request_wants_html():
  return flask.templating.render_template('list_event.html', user=user, project=project, source=source, meter=meter, resource=resource, events=jsonified)
 return jsonified

def _list_samples ( meter , project = None , resource = None , source = None , user = None ) : q_ts = _get_query_timestamps ( flask . request . args ) f = storage . SampleFilter ( user = user , project = project , source = source , meter = meter , resource = resource , start = q_ts [ 'start_timestamp' ] , end = q_ts [ 'end_timestamp' ] , metaquery = _get_metaquery ( flask . request . args ) ) samples = flask . request . storage_conn . get_samples ( f ) jsonified = flask . jsonify ( events = [ s . as_dict ( ) for s in samples ] ) if request_wants_html ( ) : return flask . templating . render_template ( 'list_event.html' , user = user , project = project , source = source , meter = meter , resource = resource , events = jsonified ) return jsonified
return a list of raw samples .