Skip to content

Interface: TemporalSeriesSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Temporal / TemporalSeriesSpec

Interface: TemporalSeriesSpec

Defined in: src/types/temporal.ts:360

How to turn the selected terms into a series.

Remarks

Pairs the extraction sources (time, value) with the aggregation (operator) and bucketing (window). Incompatible operator/window combinations (e.g. ewma with a tumbling window) are rejected with HTTP 400.

Example

const spec: TemporalSeriesSpec = {
time: { kind: 'date_time_feature', name: 'observed_at' },
value: { kind: 'feature', name: 'temperature' },
operator: { op: 'window_mean' },
window: { windowing: 'tumbling', sizeMs: 3_600_000 },
onMissing: 'skip',
};

Properties

onMissing?

optional onMissing: SeriesMissingPolicy

Defined in: src/types/temporal.ts:374

What to do when a term lacks the time/value feature. Defaults to skip.


operator

operator: SeriesOperator

Defined in: src/types/temporal.ts:368

Aggregation operator.


time

time: SeriesTimeSource

Defined in: src/types/temporal.ts:362

Event-time source.


value

value: SeriesValueSource

Defined in: src/types/temporal.ts:365

Value source.


window

window: SeriesWindowSpec

Defined in: src/types/temporal.ts:371

Time bucketing.