interface IGauge
extends IMetric
Since 0.2.0

Gauge: arbitrary set / inc / dec. observe sets the value.

Methods

set(
value: number,
labels?: Readonly<Record<string, string>>
): void

Sets the gauge to a specific value.

inc(
value?: number,
labels?: Readonly<Record<string, string>>
): void

Increments the gauge.

dec(
value?: number,
labels?: Readonly<Record<string, string>>
): void

Decrements the gauge.

Usage

import { type IGauge } from "common/src/index.ts";