Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / incrementCounter
Function: incrementCounter()
ts
function incrementCounter(
name,
labels?,
by?): void;Defined in: packages/tools/src/audit/counters.ts:50
Increment a counter (or initialise to 1). Multi-label invocations are keyed by sorted label name + value pairs to keep the snapshot deterministic.
Parameters
| Parameter | Type | Default value |
|---|---|---|
name | string | undefined |
labels? | Readonly<Record<string, string | number | boolean>> | undefined |
by? | number | 1 |
Returns
void