tsDec based metrics

#1

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.

0 Likes

#2

Consider

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

0 Likes