Beispiel #1
0
 def get_data(self, session):
     for item in pubsub_consumer_list(session,
                                      self.request.input.cluster_id,
                                      self.request.input.topic_name)[0]:
         item.last_seen = self.pubsub.get_consumer_last_seen(item.client_id)
         item.current_depth = self.pubsub.get_consumer_queue_current_depth(
             item.sub_key)
         item.in_flight_depth = self.pubsub.get_consumer_queue_in_flight_depth(
             item.sub_key)
         yield item
Beispiel #2
0
 def get_pubsub_consumer_list(self, cluster_id, needs_columns=False):
     """ Returns a list of pub/sub consumers defined on a cluster.
     """
     return query.pubsub_consumer_list(self._session, cluster_id, None,
                                       needs_columns)
Beispiel #3
0
 def get_pubsub_consumer_list(self, cluster_id, needs_columns=False):
     """ Returns a list of pub/sub consumers defined on a cluster.
     """
     return query.pubsub_consumer_list(self._session, cluster_id, None, needs_columns)
Beispiel #4
0
 def get_data(self, session):
     for item in pubsub_consumer_list(session, self.request.input.cluster_id, self.request.input.topic_name)[0]:
         item.last_seen = self.pubsub.get_consumer_last_seen(item.client_id)
         item.current_depth = self.pubsub.get_consumer_queue_current_depth(item.sub_key)
         yield item