Skip to content

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

PropertyModifierTypeDescriptionDefined in
countersreadonlyReadonly<Record&lt;string, number&gt;>-packages/tools/src/audit/counters.ts:112
histogramsreadonlyReadonly<Record<string, ReadonlyArray&lt;number&gt;>>-packages/tools/src/audit/counters.ts:113
kindsreadonlyReadonly<Record&lt;string, "counter" | "gauge"&gt;>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