nwangtw commented on a change in pull request #3359: Hook up a packing plan endpoint in Heron UI URL: https://github.com/apache/incubator-heron/pull/3359#discussion_r332154886
########## File path: heron/tools/common/src/python/access/heron_api.py ########## @@ -266,6 +267,25 @@ def get_instances(cluster, environ, topology, role=None): raise tornado.gen.Return(instances) +################################################################################ [email protected] +def get_packing_plan(cluster, environ, topology, role=None): + ''' + Get the packing plan state of a topology in a cluster from tracker + :param cluster: + :param environ: + :param topology: + :param role: + :return: + ''' + params = dict(cluster=cluster, environ=environ, topology=topology) + if role is not None: + params['role'] = role Review comment: Role is optional. it is the same as the other handlers. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
