Class MetricsCollector.Snapshot

java.lang.Object
com.soklet.MetricsCollector.Snapshot
Enclosing interface:
MetricsCollector

@ThreadSafe public static final class MetricsCollector.Snapshot extends Object
Immutable snapshot of collected metrics.

Durations are in nanoseconds, sizes are in bytes, and queue depths are raw counts. Histogram values are captured as MetricsCollector.HistogramSnapshot instances. Connection counts report total accepted/rejected connections for the HTTP and SSE servers. Request read failures and request rejections are reported separately for HTTP and SSE traffic. Instances are typically produced by MetricsCollector.snapshot() but can also be built manually via builder().

Author:
Mark Allen