Our customer has a use case where they need to calculate consumption and provide measurement data for the consumption values, but can have data come in at a later date which will potentially change the values of these metrics/timeseries. They want to be able to evaluate metrics based off only data that was available on or before a given date.
I spoke with @rohit.sureka a few weeks back and he mentioned the
TimeseriesDataBase type, which sounds like it would provide exactly what we’re looking for - it provides a way to normalize a timeseries with filtering and/or grouping the data points. There isn’t really much documentation on this type, however, and I couldn’t find any samples where it’s being used.
Could anyone provide an example of how to use this type? Specifically for the method
evalTimeseriesHistorical(), I’m not sure what to provide for
// parent Id for the timeseries. This will be used to look up the parent parent: string