method Counter.prototype.getValue
Counter.prototype.getValue(labels?: Readonly<Record<string, string>>): number

Gets the current value for a label set.

Parameters

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

Label values keyed by label name

Return Type

number

The current value

Usage

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