Overwrite metricbeat time period

Hi I have new module which collect url health. I need to overwrite the default time period with multiple values which is taken through user input. For first url let say time interval is 30 seconds and second url 60 seconds. So can i have an option to disable or overwrite the default metricbeat time period?