RedactionStats class final

Per-layer and per-tool counters for the pipeline.

byLayer and total count the matches each RedactionPipeline.scan produces (after dedupe, allowlist and pass-through filtering); record counts redaction events per tool name for hook wiring.

Constructors

RedactionStats()

Properties

byLayer → Map<String, int>
Surviving matches per layer name (e.g. 'vendor'), unmodifiable.
no setter
byTool → Map<String, int>
Recorded redaction events per tool name, unmodifiable.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total → int
Total surviving matches counted across all scans.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(String toolName) → void
Records one redaction event issued by toolName.
reset() → void
Zeroes every counter (issue #391 settings flow: the "reset stats" action). In-flight scans are unaffected — counting is idempotent per scan pass.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited