method IGauge.set
IGauge.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 { type IGauge } from "common/src/index.ts";