@blueprint.route('/projects/<project>/meters')
def list_meters_by_project(project):
 check_authorized_project(project)
 rq = flask.request
 meters = rq.storage_conn.get_meters(project=project, metaquery=_get_metaquery(rq.args))
 return flask.jsonify(meters=[m.as_dict() for m in meters])

@ blueprint . route ( '/projects/<project>/meters' ) def list_meters_by_project ( project ) : check_authorized_project ( project ) rq = flask . request meters = rq . storage_conn . get_meters ( project = project , metaquery = _get_metaquery ( rq . args ) ) return flask . jsonify ( meters = [ m . as_dict ( ) for m in meters ] )
return a list of meters by project .