Skip to content

Interface: TemporalSeriesRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Temporal / TemporalSeriesRequest

Interface: TemporalSeriesRequest

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

Request to build a temporal series over a selection of timestamped terms.

Remarks

The tenant is taken from the authenticated principal, never the body. At most 50 000 selected terms are folded into a single series (the backend truncates beyond that).

Example

const request: TemporalSeriesRequest = {
selector: { type: 'sort', sortName: 'sensor_reading', includeDescendants: true },
spec: {
time: { kind: 'date_time_feature', name: 'observed_at' },
value: { kind: 'feature', name: 'temperature' },
operator: { op: 'window_mean' },
window: { windowing: 'tumbling', sizeMs: 3_600_000 },
},
};

Properties

selector

selector: TermSetSelector

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

Which terms become the series.


spec

spec: TemporalSeriesSpec

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

Time/value extraction, operator, and window. Sent as the wire field request.