GeoNet / fdsn

FDSN Web Services
MIT License
17 stars 15 forks source link

Limit Dataselect Queries #166

Closed danieldooley closed 5 years ago

danieldooley commented 5 years ago

Related to https://github.com/GeoNet/tickets/issues/3759

This PR restricts Dataselect queries to either 60 days (more specifically day files) (2 months) OR a maximum of 30 minutes.

This implementation assumes it is ok to request those 60 days in any combination (e.g. 2days of each channel across 30 channels OR 60 days of 1 channel). i.e. as long as:

[num of channels] * [num of days OR partial days] <= 60 OR longest request <= 30mins

The request will be allowed.

It does not change limits on the other queries (event or station). Data metrics are limited to maximum files of 60 but have no 30minute 'grace' window in this implementation.