def makeRequest(self, run, tag, host): req = Request({}) req.args = { 'run': run, 'tag': tag, 'host': host, } return req
def make_data_request(run, tool, host=None): """Creates a werkzeug.Request to pass as argument to ProfilePlugin.data_impl. Args: run: Front-end run name. tool: ProfilePlugin tool, e.g., 'trace_viewer'. host: Host that generated the profile data, e.g., 'localhost'. Returns: A werkzeug.Request to pass to ProfilePlugin.data_impl. """ req = Request({}) req.args = {'run': run, 'tag': tool} if host: req.args['host'] = host return req
def makeRequest(self, run, tag, host): req = Request({}) req.args = {'run': run, 'tag': tag, 'host': host,} return req