Those parameters are used to pick up certain signals. Usually you do not need to change them. If you want to change, please check this article https://optics.ansys.com/hc/en-us/articles/360034902473-Understanding-time-apodization-in-frequency-domain-monitors
to get more information.
As for the grating length, it is periodic, meanining infinitely long.