@tornado.gen.coroutine<EOL><INDENT>def get(self):<DEDENT>
try:<EOL><INDENT>cluster = self.get_argument_cluster()<EOL>role = self.get_argument_role()<EOL>environ = self.get_argument_environ()<EOL>topology_name = self.get_argument_topology()<EOL>topology = self.tracker.getTopologyByClusterRoleEnvironAndName(<EOL>cluster, role, environ, topology_name)<EOL>start_time = self.get_argument_starttime()<EOL>end_time = self.get_argument_endtime()<EOL>self.validateInterval(start_time, end_time)<EOL>query = self.get_argument_query()<EOL>metrics = yield tornado.gen.Task(self.executeMetricsQuery,<EOL>topology.tmaster, query, int(start_time), int(end_time))<EOL>self.write_success_response(metrics)<EOL><DEDENT>except Exception as e:<EOL><INDENT>Log.debug(traceback.format_exc())<EOL>self.write_error_response(e)<EOL><DEDENT>
get method