IExpression

Interface

Expression by which a metric can be filtered before aggregation, i.e. a clause of a where statement

Properties

Property Type Notes
field Optional IField

Field that the expression filters on

key Optional string

A special identifier given to the expression when it is created

relationship Optional ExpressionRelationships

Relation between the values in an expression

values Optional Array<string | number | Date>

The values that the where clause will be using on the right-hand side of the statement: this can be an array of strings, numbers, or dates. These values will be used in conjunction with the field to construct a where clause.


Interface defined in common/src/core/types/Metrics.ts:190