def _dump_query_timestamps(self, current_time: float):
        """Output the number of GraphQL queries grouped by their query_hash within the last time."""
        windows = [10, 11, 15, 20, 30, 60]
        print("GraphQL requests:", file=sys.stderr)
        for query_hash, times in self._graphql_query_timestamps.items():
            print("  {}".format(query_hash), file=sys.stderr)
            for window in windows:
                reqs_in_sliding_window = sum(t > current_time - window * 60 for t in times)
                print("    last {} minutes: {} requests".format(window, reqs_in_sliding_window), file=sys.stderr)
def _dump_query_timestamps ( self , current_time : float ) : windows = [ 10 , 11 , 15 , 20 , 30 , 60 ] print ( "GraphQL requests:" , file = sys . stderr ) for query_hash , times in self . _graphql_query_timestamps . items ( ) : print ( "  {}" . format ( query_hash ) , file = sys . stderr ) for window in windows : reqs_in_sliding_window = sum ( t > current_time - window * 60 for t in times ) print ( "    last {} minutes: {} requests" . format ( window , reqs_in_sliding_window ) , file = sys . stderr )
Output the number of GraphQL queries grouped by their query_hash within the last time.