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

Gets the sum for a label set.

Parameters

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

Label values keyed by label name

Return Type

number

The sum of all observations

Usage

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