Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/observability / / RedactionValidatorInstance
Interface: RedactionValidatorInstance
Defined in: packages/observability/src/redaction/types.ts:111
Concrete validator returned by createRedactionValidator.
Stable
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
counters | readonly | () => RedactionCounters | Snapshot of internal counters. Returned object is a fresh copy. | - | packages/observability/src/redaction/types.ts:113 |
id | readonly | string | Identifier of the policy in use ('default-deny-internal', …). | RedactionValidator.id | packages/core/dist/contracts/redaction-validator.d.ts:19 |
minTier | readonly | Sensitivity | Lowest tier that may pass through the validator. | RedactionValidator.minTier | packages/core/dist/contracts/redaction-validator.d.ts:21 |
resetCounters | readonly | () => void | Reset all counters back to zero. | - | packages/observability/src/redaction/types.ts:115 |
Methods
validate()
ts
validate(input):
| RedactionOutput
| null;Defined in: packages/core/dist/contracts/redaction-validator.d.ts:26
Validate (and optionally rewrite) an attribute payload. Returns the sanitized value or null if the entire record must be dropped.
Parameters
| Parameter | Type |
|---|---|
input | RedactionInput |
Returns
| RedactionOutput | null