method Gauge.prototype.dec
Gauge.prototype.dec(
value?: number,
labels?: Readonly<Record<string, string>>
): void

Decrements the gauge.

Parameters

optional
value: number = 1

The value to subtract (default 1)

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

Label values keyed by label name

Return Type

void

Usage

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