Skip to content

SDK API Reference / SegmentOperator

Interface: SegmentOperator

Segment operator for filtering Supports 15+ operators including comparison, set, text, pattern, and time

Properties

duration?

optional duration: Record<string, number>


from?

optional from: object

last

last: string | number

unit

unit: string


maxValue?

optional maxValue: string | TemporalValue


minValue?

optional minValue: string | TemporalValue


not?

optional not: boolean


reverse?

optional reverse: boolean


rightValue?

optional rightValue: string | number | boolean | TemporalValue


rightValues?

optional rightValues: (string | number | boolean)[]


type

type: "Equal" | "Greater" | "Less" | "GreaterEqual" | "LessEqual" | "In" | "Between" | "Regexp" | "IsNull" | "TimeWithinPast" | "TimeWithinNext" | "Contain" | "StartWith" | "EndWith" | "TimeRange"


unit?

optional unit: string


value?

optional value: string | number