Package org.apache.beam.sdk.metrics
Interface MetricsContainer
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JetMetricsContainer
Holds the metrics for a single step. Each of the methods should return an implementation of the
appropriate metrics interface for the "current" step.
-
Method Summary
Modifier and TypeMethodDescriptiongetBoundedTrie(MetricName metricName) Return theBoundedTriethat should be used for implementing the givenmetricNamein this container.getCounter(MetricName metricName) Return theCounterthat should be used for implementing the givenmetricNamein this container.getDistribution(MetricName metricName) Return theDistributionthat should be used for implementing the givenmetricNamein this container.getGauge(MetricName metricName) Return theGaugethat should be used for implementing the givenmetricNamein this container.default HistogramgetHistogram(MetricName metricName, org.apache.beam.sdk.util.HistogramData.BucketType bucketType) Return theHistogramthat should be used for implementing the givenmetricNamein this container.default Iterable<org.apache.beam.model.pipeline.v1.MetricsApi.MonitoringInfo> Return the cumulative values for any metrics in this container as MonitoringInfos.default CountergetPerWorkerCounter(MetricName metricName) Return theCounterthat should be used for implementing the given per-worker invalid input: '{@code metricName) in this container.'getStringSet(MetricName metricName) Return theStringSetthat should be used for implementing the givenmetricNamein this container.
-
Method Details
-
getCounter
Return theCounterthat should be used for implementing the givenmetricNamein this container. -
getPerWorkerCounter
Return theCounterthat should be used for implementing the given per-worker invalid input: '{@code metricName) in this container.' -
getDistribution
Return theDistributionthat should be used for implementing the givenmetricNamein this container. -
getGauge
Return theGaugethat should be used for implementing the givenmetricNamein this container. -
getStringSet
Return theStringSetthat should be used for implementing the givenmetricNamein this container. -
getBoundedTrie
Return theBoundedTriethat should be used for implementing the givenmetricNamein this container. -
getHistogram
default Histogram getHistogram(MetricName metricName, org.apache.beam.sdk.util.HistogramData.BucketType bucketType) Return theHistogramthat should be used for implementing the givenmetricNamein this container. -
getMonitoringInfos
Return the cumulative values for any metrics in this container as MonitoringInfos.
-