method Histogram.prototype.getAllBucketCounts
Histogram.prototype.getAllBucketCounts(): ReadonlyMap<
string,
{ buckets: ReadonlyMap<number, number>; sum: number; count: number; labels?: Readonly<Record<string, string>>; }
>

Gets all bucket counts for all observed label sets.

Return Type

ReadonlyMap<
string,
{ buckets: ReadonlyMap<number, number>; sum: number; count: number; labels?: Readonly<Record<string, string>>; }
>

A map of label keys to their bucket counts, sum, and count

Usage

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