Class CCSTelemetrySnapshot

java.lang.Object
org.elasticsearch.action.admin.cluster.stats.CCSTelemetrySnapshot
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

public final class CCSTelemetrySnapshot extends Object implements Writeable, ToXContentFragment
Holds a snapshot of the CCS telemetry statistics from CCSUsageTelemetry. Used to hold the stats for a single node that's part of a ClusterStatsNodeResponse, as well as to accumulate stats for the entire cluster and return them as part of the ClusterStatsResponse.
Theory of operation: - The snapshot is created on each particular node with the stats for the node, and is sent to the coordinating node - Coordinating node creates an empty snapshot and merges all the node snapshots into it using add()
The snapshot contains LongMetric.LongMetricValues for latencies, which currently contain full histograms (since you can't produce p90 from a set of node p90s, you need the full histogram for that). To avoid excessive copying (histogram weighs several KB), the snapshot is designed to be mutable, so that you can add multiple snapshots to it without copying the histograms all the time. It is not the intent to mutate the snapshot objects otherwise.