Table of Contents

Public classSealed MetricsSnapshot

Namespace
Rowles.LeanLucene.Diagnostics
Assembly
Rowles.LeanLucene.dll

Point-in-time snapshot of operational metrics.

public sealed class MetricsSnapshot
MetricsSnapshot

Public field Empty

Gets an empty snapshot with all counters at zero.

Public property CacheHitRate

Gets the fraction of cache lookups that were hits (0–1).

Public property CacheHits

Gets the total number of query cache hits.

Public property CacheMisses

Gets the total number of query cache misses.

Public property CommitCount

Gets the total number of index commit operations.

Public property CommitTotalMs

Gets the cumulative time spent committing in milliseconds.

Public property FlushCount

Gets the total number of segment flush operations.

Public property FlushTotalMs

Gets the cumulative time spent flushing segments in milliseconds.

Public property HnswBuildCount

Total number of HNSW graphs built (flush + merge).

Public property HnswBuildTotalMs

Cumulative time spent building HNSW graphs in milliseconds.

Public property HnswNodesBuilt

Total nodes inserted across all HNSW build operations.

Public property HnswNodesVisited

Total nodes visited across all HNSW graph traversals (recall-vs-cost signal).

Public property HnswSearchCount

Total number of HNSW graph traversals performed during search.

Public property HnswSearchTotalMs

Cumulative time spent in HNSW graph traversal in milliseconds.

Public property LatencyHistogram

Latency histogram: buckets are [<1ms, <5ms, <10ms, <50ms, <100ms, <500ms, <1000ms, ≥1000ms].

Public property MergeCount

Gets the total number of segment merge operations.

Public property MergeSegments

Gets the total number of segments merged across all merge operations.

Public property MergeTotalMs

Gets the cumulative time spent merging segments in milliseconds.

Public property SearchAvgMs

Gets the average search latency in milliseconds.

Public property SearchCount

Gets the total number of searches executed.

Public property SearchMaxMs

Gets the maximum observed search latency in milliseconds.

Public property SearchTotalMs

Gets the cumulative search latency in milliseconds.