Allow for arbitrary sampling intervals

Add a new custom sampling where the time series is taking as is and produces a single aggregate value over its total time span.