Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/tools / / CounterSnapshot
Interface: CounterSnapshot
Defined in: packages/tools/src/audit/counters.ts:111
Snapshot of the counter + histogram registry. Returns fresh frozen objects so callers cannot accidentally mutate the registry.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
counters | readonly | Readonly<Record<string, number>> | - | packages/tools/src/audit/counters.ts:112 |
histograms | readonly | Readonly<Record<string, ReadonlyArray<number>>> | - | packages/tools/src/audit/counters.ts:113 |
kinds | readonly | Readonly<Record<string, "counter" | "gauge">> | W-051: per-key instrument kind - 'counter' (monotonic; bridge with a delta-inc) vs 'gauge' (absolute; bridge with a set). Keys mirror counters. | packages/tools/src/audit/counters.ts:119 |