tsDec based metrics


What does tsDecl.start do, and why do we need it?

Based on c3ShowType(TSDecl)

 * start date expression on the type which is at the end of the path
start: string

But this doesn’t explain a lot.

It’s better to provide some examples of setting tsDecl.start, and why we need to set it.




type DataPoint {
timestamp: datetime

someOtherField: datetime

value: double

When you evaluate a query for a particular start / end, in order for the engine to construct a time series it needs to find out which field to use as value of the timeseries, time attribute of the timeseries and hence start / end /value fields are required