def get(self, kind): templist = [] # the current 30 seconds templist += EventTrackQueue.take_current_snapshot() # the already stocked by side, until Stats dump them in 1hour templist += State.RecentEventQ templist.sort(key=operator.itemgetter('id')) if kind == 'details': return templist return self.get_summary(templist)
def get(self, kind): templist = [] # the current 30 seconds templist += EventTrackQueue.take_current_snapshot() # the already stocked by side, until Stats dump them in 1hour templist += GLSettings.RecentEventQ templist.sort(key=operator.itemgetter('id')) if kind == 'details': self.finish(templist) else: # kind == 'summary': self.finish(self.get_summary(templist))
def get(self, kind): templist = [] # the current 30 seconds templist += EventTrackQueue.take_current_snapshot() # the already stocked by side, until Stats dump them in 1hour templist += GLSettings.RecentEventQ templist.sort(key=operator.itemgetter('id')) if kind == 'details': self.finish(templist) else: # kind == 'summary': self.finish(self.get_summary(templist))