Skip to main content

Modeling

namefor
cubetable
viewquery
measureaggregation over column
dimensionattribute of measure, column
join
segmentfilter
pre-aggregations
interface Query {
measures: (Member | MemberExpression | ParsedMemberExpression)[];
dimensions?: (Member | TimeMember | MemberExpression | ParsedMemberExpression)[];
filters?: (QueryFilter | LogicalAndFilter | LogicalOrFilter)[];
timeDimensions?: QueryTimeDimension[];
segments?: (Member | MemberExpression | ParsedMemberExpression)[];
limit?: null | number;
offset?: number;
total?: boolean;
totalQuery?: boolean;
order?: any;
timezone?: string;
renewQuery?: boolean;
ungrouped?: boolean;
responseFormat?: ResultType;
}

/**
* Normalized filter interface.
*/
interface NormalizedQueryFilter extends QueryFilter {
dimension?: Member;
}

/**
* Normalized query interface.
*/
interface NormalizedQuery extends Query {
filters?: NormalizedQueryFilter[];
rowLimit?: null | number;
order?: { id: string; desc: boolean }[];
}