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 theBoundedTrie
that should be used for implementing the givenmetricName
in this container.getCounter
(MetricName metricName) Return theCounter
that should be used for implementing the givenmetricName
in this container.getDistribution
(MetricName metricName) Return theDistribution
that should be used for implementing the givenmetricName
in this container.getGauge
(MetricName metricName) Return theGauge
that should be used for implementing the givenmetricName
in this container.default Histogram
getHistogram
(MetricName metricName, org.apache.beam.sdk.util.HistogramData.BucketType bucketType) Return theHistogram
that should be used for implementing the givenmetricName
in 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 Counter
getPerWorkerCounter
(MetricName metricName) Return theCounter
that should be used for implementing the given per-worker invalid input: '{@code metricName) in this container.'getStringSet
(MetricName metricName) Return theStringSet
that should be used for implementing the givenmetricName
in this container.
-
Method Details
-
getCounter
Return theCounter
that should be used for implementing the givenmetricName
in this container. -
getPerWorkerCounter
Return theCounter
that should be used for implementing the given per-worker invalid input: '{@code metricName) in this container.' -
getDistribution
Return theDistribution
that should be used for implementing the givenmetricName
in this container. -
getGauge
Return theGauge
that should be used for implementing the givenmetricName
in this container. -
getStringSet
Return theStringSet
that should be used for implementing the givenmetricName
in this container. -
getBoundedTrie
Return theBoundedTrie
that should be used for implementing the givenmetricName
in this container. -
getHistogram
default Histogram getHistogram(MetricName metricName, org.apache.beam.sdk.util.HistogramData.BucketType bucketType) Return theHistogram
that should be used for implementing the givenmetricName
in this container. -
getMonitoringInfos
Return the cumulative values for any metrics in this container as MonitoringInfos.
-