def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     queue_name = tracker.get_slot('queue_name')
     queue = api.get_queue_by_name(name=queue_name)
     out_msg = 'Queue not found'
     if queue:
         out_msg = utils.dict_to_markdown(queue)
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     process_name = tracker.get_slot('process_name')
     process = api.get_process_by_id(id=process_name)
     out_msg = 'Process not found'
     if process:
         out_msg = utils.dict_to_markdown(process)
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     asset_name = tracker.get_slot('asset_name')
     asset = api.get_asset_by_name(name=asset_name)
     out_msg = 'Asset not found'
     if asset:
         out_msg = utils.dict_to_markdown(asset)
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     job_name = tracker.get_slot('job_name')
     job = api.get_job_by_name(name=job_name)
     out_msg = 'Job not found'
     if job:
         out_msg = utils.dict_to_markdown(job)
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     processes = tracker.get_slot('process_list')
     try:
         process = processes[0]
         out_msg = utils.dict_to_markdown(process)
     except IndexError:
         out_msg = 'Process not found'
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     queues = tracker.get_slot('queue_list')
     try:
         queue = queues[0]
         out_msg = utils.dict_to_markdown(queue)
     except IndexError:
         out_msg = 'Queue not found'
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     assets = tracker.get_slot('asset_list')
     try:
         asset = assets[0]
         out_msg = utils.dict_to_markdown(asset)
     except IndexError:
         out_msg = 'Asset not found'
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     robot_name = tracker.get_slot('robot_name')
     robot = api.get_robot_by_name(
         name=robot_name, reporting_time=utils.calc_reporting_time())
     out_msg = 'Robot not found'
     if robot:
         out_msg = utils.dict_to_markdown(robot)
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     entities = tracker.latest_message['entities']
     process_idx = utils.get_number_from_tracked_entities(entities)
     processes = tracker.get_slot('process_list')
     try:
         process = processes[process_idx]
         out_msg = utils.dict_to_markdown(process)
     except IndexError:
         out_msg = 'Process not found'
     dispatcher.utter_message(out_msg)
     return []
 def run(
         self,
         dispatcher,  # type: CollectingDispatcher
         tracker,  # type: Tracker
         domain,  # type:  Dict[Text, Any]
 ):  # type: (...) -> List[Dict[Text, Any]]
     entities = tracker.latest_message['entities']
     robot_idx = utils.get_number_from_tracked_entities(entities)
     robots = tracker.get_slot('robot_list')
     try:
         robot = robots[robot_idx]
         out_msg = utils.dict_to_markdown(robot)
     except IndexError:
         out_msg = 'Robot not found'
     dispatcher.utter_message(out_msg)
     return []