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

Sets the gauge to a specific value.

Parameters

value: number

The new value

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

Label values keyed by label name

Return Type

void

Usage

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