Suggestion is that if a single timepoint is provided instead of an interval, only data that matches this datetime as closely as possible should be returned.
For daily resolution: the closest available day
For hourly resolution: the closest available hour
For minute, and second resolution: a single row of the vpts file.
However, we want to avoid returning data too far away from the timestamp, so there should be some reasonable rounding/ceiling-floor logic. Perhaps, within 20 minutes or so? Like if no data is found within 20 minutes, return an error?
Intervals should always be within the interval. If one end of the interval does not have data (for example, the upper bound is in the future), then the existing data should be returned. If nothing exists in the interval, return an error.
Discussed with @peterdesmet, @CeciliaNilsson709 and @bart1. Please add on to this if I got anything wrong!
Suggestion is that if a single timepoint is provided instead of an interval, only data that matches this datetime as closely as possible should be returned.
For daily resolution: the closest available day
For hourly resolution: the closest available hour
For minute, and second resolution: a single row of the vpts file.
However, we want to avoid returning data too far away from the timestamp, so there should be some reasonable rounding/ceiling-floor logic. Perhaps, within 20 minutes or so? Like if no data is found within 20 minutes, return an error?
Intervals should always be within the interval. If one end of the interval does not have data (for example, the upper bound is in the future), then the existing data should be returned. If nothing exists in the interval, return an error.
Discussed with @peterdesmet, @CeciliaNilsson709 and @bart1. Please add on to this if I got anything wrong!