Skip to content

MetricQueryResult

Result of a Metric query as a sparse series of interval buckets with an overall total.

MetricReportEntry for the shape returned by MetricQueryBuilder.execute

readonly buckets: MetricQueryResultBucket[]

Buckets that make up this result. The array is sparse: an interval with no contributions has no bucket.


readonly count: number

Number of distinct contributions aggregated into this point.

MetricQueryResultEntry.count


readonly metricPrn: string

PRN of the Metric that was queried.


readonly period: MetricQueryPeriod

Granularity each bucket was resolved to.


readonly value: number

Aggregated value of the contributions under the query’s function; for count it equals count.

MetricQueryResultEntry.value