Class IntegrityFinding
One thing that is wrong with a database, with everything needed to judge it: what rule it violates, where it is, how confident the scan is, and what repairing it would cost.
public sealed class IntegrityFinding
- Inheritance
-
IntegrityFinding
- Inherited Members
Constructors
IntegrityFinding()
public IntegrityFinding()
Properties
Code
Stable check code, e.g. "CHK-IDX-04". A finding code is an API — renaming one breaks somebody's alert.
public required string Code { get; init; }
Property Value
Confidence
Whether the source was quiescent when this was observed.
public IntegrityConfidence Confidence { get; init; }
Property Value
Detail
The evidence: expected versus found, with the numbers that support the conclusion.
public string Detail { get; init; }
Property Value
Locus
Where the problem is.
public Locus Locus { get; init; }
Property Value
Loss
What repairing it would cost. Never null — use None for lossless findings.
public LossEstimate Loss { get; init; }
Property Value
Occurrences
Number of occurrences this finding aggregates, when the scan collapsed a repeated condition. 1 otherwise.
public long Occurrences { get; init; }
Property Value
Repair
What can be done about it.
public Repairability Repair { get; init; }
Property Value
RuleId
Identifier of the rules/ invariant this violates, e.g. "RB-03". Empty only for structural pre-checks.
public string RuleId { get; init; }
Property Value
Severity
How bad this is.
public required IntegritySeverity Severity { get; init; }
Property Value
Summary
One sentence, no jargon — what is wrong.
public required string Summary { get; init; }
Property Value
Methods
ToString()
public override string ToString()