Metrics Snapshot
SegmentIndex.metricsSnapshot() exposes a stable, read-only metrics contract
for index-level telemetry.
Current fields
getOperationCount
Total number ofget(...)calls accepted by the index instance.putOperationCount
Total number ofput(...)calls accepted by the index instance.deleteOperationCount
Total number ofdelete(...)calls accepted by the index instance.state
CurrentSegmentIndexStateat snapshot creation time.
Semantics
- Snapshot is immutable.
- Counts are monotonic for one index instance lifetime.
- Counters are process-local and reset when a new index object is created.
- Field values represent observed operation calls, not necessarily durable writes on disk.
Compatibility policy
- Existing fields and meaning are stable and cannot change silently.
- New fields may be added in future versions.
- Consumers should ignore unknown fields for forward compatibility.