Skip to content

MetricReportEntry

One node of a Metric report: totals for this level plus nested entries for the next.

The root entry totals the whole interval. Its children are the period buckets, each holding one entry per value of the first Dimension, each of which nests the next Dimension, in the order requested.

Reading a report grouped by one Dimension

const byMoment = report.entries['day'].entries;
byMoment[momentId]; // => { key: momentId, count: 3, entries: {}, value: 3 }

MetricQueryBuilder.execute

readonly count: number | null

Number of distinct focal Dimension values that contributed, or null when no aggregate exists for this entry.

MutableMetricReportEntry.count


readonly entries: Record<string, MetricReportEntry>

Child entries keyed by the next level’s value.

MutableMetricReportEntry.entries


readonly key: string | null

Value this entry is keyed by: the period name at the first level, then a Dimension value; the root entry has an empty key.

MutableMetricReportEntry.key


readonly value: number | null

Sum of the projected contributions, or null when no aggregate exists for this entry.

MutableMetricReportEntry.value