Class QueryGuardBaselineEntry
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
What one scope cost when the baseline was recorded.
public sealed class QueryGuardBaselineEntry
- Inheritance
-
QueryGuardBaselineEntry
- Inherited Members
Remarks
Deliberately three numbers and a name. A baseline that recorded SQL text would be a second copy of the report, would need redaction rules of its own, and would produce a diff nobody reads on every unrelated schema change. Counts are the thing a regression moves.
No timings either. Durations vary between a laptop and a shared runner, so a baseline containing them would report a regression whenever CI was busy, which is the failure mode that teaches people to ignore a tool.
Constructors
- QueryGuardBaselineEntry(string, int, int, int)
Initializes a new instance of the QueryGuardBaselineEntry class.
Properties
- DistinctQueries
Gets how many distinct fingerprints the scope executed.
- ReadCommands
Gets the counted read commands recorded for this scope.
- Scope
Gets the scope this entry describes.
- TopFingerprintOccurrences
Gets how many times the most repeated fingerprint ran.
Methods
- FromResult(QueryGuardResult)
Records what a completed result cost, so it can be compared later.
- ToString()
Returns a string that represents the current object.