method Histogram.prototype.getBucketCounts
Histogram.prototype.getBucketCounts(labels?: Readonly<Record<string, string>>): ReadonlyMap<number, number>

Gets the bucket counts for a label set.

Parameters

optional
labels: Readonly<Record<string, string>>

Label values keyed by label name

Return Type

ReadonlyMap<number, number>

A map of bucket boundaries to counts

Usage

import { Histogram } from "metrics-plugin/src/index.ts";