Table of Contents

Class IntegrityFinding

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

string

Confidence

Whether the source was quiescent when this was observed.

public IntegrityConfidence Confidence { get; init; }

Property Value

IntegrityConfidence

Detail

The evidence: expected versus found, with the numbers that support the conclusion.

public string Detail { get; init; }

Property Value

string

Locus

Where the problem is.

public Locus Locus { get; init; }

Property Value

Locus

Loss

What repairing it would cost. Never null — use None for lossless findings.

public LossEstimate Loss { get; init; }

Property Value

LossEstimate

Occurrences

Number of occurrences this finding aggregates, when the scan collapsed a repeated condition. 1 otherwise.

public long Occurrences { get; init; }

Property Value

long

Repair

What can be done about it.

public Repairability Repair { get; init; }

Property Value

Repairability

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

string

Severity

How bad this is.

public required IntegritySeverity Severity { get; init; }

Property Value

IntegritySeverity

Summary

One sentence, no jargon — what is wrong.

public required string Summary { get; init; }

Property Value

string

Methods

ToString()

public override string ToString()

Returns

string