Class StreamingInsertsMetrics.StreamingInsertsMetricsImpl

java.lang.Object
org.apache.beam.sdk.io.gcp.bigquery.StreamingInsertsMetrics.StreamingInsertsMetricsImpl
All Implemented Interfaces:
StreamingInsertsMetrics
Enclosing interface:
StreamingInsertsMetrics

public abstract static class StreamingInsertsMetrics.StreamingInsertsMetricsImpl extends Object implements StreamingInsertsMetrics
Metrics of a batch of InsertAll RPCs. Member variables are thread safe; however, this class does not have atomicity across member variables.

Expected usage: A number of threads record metrics in an instance of this class with the member methods. Afterwards, a single thread should call updateStreamingInsertsMetrics which will export all counters metrics and RPC latency distribution metrics to the underlying perWorkerMetrics container. Afterwards, metrics should not be written/read from this object.