Skip to content

MetricQueryBuilder

Defined in: runtime/metric.ts:44

dimensions(dimensions): this

Defined in: runtime/metric.ts:54

The metric result will be bucketed by the supplied dimensions; in order. The dimensions must be unique in the supplied array. If one is repeated an error will be generated.

There is a maxiumum number of dimensions that can be supplied as per LIMIT-12.

DimensionInstance[]

this

https://www.notion.so/pynhq/Maximum-number-of-Metric-Query-Dimensions-bda0c269ed0f4ed9b71c8c3bfd615064?pvs=4


execute(): Promise<MetricReportEntry>

Defined in: runtime/metric.ts:60

Executes and returns the results of this query.

Promise<MetricReportEntry>


focalDimension(focalDimension): this

Defined in: runtime/metric.ts:65

Sets the focal dimension for this query. The focal dimension will be distinctly counted.

DimensionInstance

this


interval(from, to): this

Defined in: runtime/metric.ts:70

Adjust the interval for this metric from the default.

Date

Date

this


period(period): this

Defined in: runtime/metric.ts:75

Sets the period for this query.

MetricQueryPeriod

this