
MetricsSnapshot
- Namespace
- Rowles.LeanLucene.Diagnostics
- Assembly
- Rowles.LeanLucene.dll
Point-in-time snapshot of operational metrics.
public sealed class MetricsSnapshot
Empty
Gets an empty snapshot with all counters at zero.
CacheHitRate
Gets the fraction of cache lookups that were hits (0–1).
CacheHits
Gets the total number of query cache hits.
CacheMisses
Gets the total number of query cache misses.
CommitCount
Gets the total number of index commit operations.
CommitTotalMs
Gets the cumulative time spent committing in milliseconds.
FlushCount
Gets the total number of segment flush operations.
FlushTotalMs
Gets the cumulative time spent flushing segments in milliseconds.
HnswBuildCount
Total number of HNSW graphs built (flush + merge).
HnswBuildTotalMs
Cumulative time spent building HNSW graphs in milliseconds.
HnswNodesBuilt
Total nodes inserted across all HNSW build operations.
HnswNodesVisited
Total nodes visited across all HNSW graph traversals (recall-vs-cost signal).
HnswSearchCount
Total number of HNSW graph traversals performed during search.
HnswSearchTotalMs
Cumulative time spent in HNSW graph traversal in milliseconds.
LatencyHistogram
Latency histogram: buckets are [<1ms, <5ms, <10ms, <50ms, <100ms, <500ms, <1000ms, ≥1000ms].
MergeCount
Gets the total number of segment merge operations.
MergeSegments
Gets the total number of segments merged across all merge operations.
MergeTotalMs
Gets the cumulative time spent merging segments in milliseconds.
SearchAvgMs
Gets the average search latency in milliseconds.
SearchCount
Gets the total number of searches executed.
SearchMaxMs
Gets the maximum observed search latency in milliseconds.
SearchTotalMs
Gets the cumulative search latency in milliseconds.