Package org.apache.beam.sdk.metrics
Class MetricQueryResults
java.lang.Object
org.apache.beam.sdk.metrics.MetricQueryResults
The results of a query for metrics. Allows accessing all the metrics that matched the filter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricQueryResults
create
(Iterable<MetricResult<Long>> counters, Iterable<MetricResult<DistributionResult>> distributions, Iterable<MetricResult<GaugeResult>> gauges, Iterable<MetricResult<StringSetResult>> stringSets, Iterable<MetricResult<BoundedTrieResult>> boundedTries, Iterable<MetricResult<org.apache.beam.sdk.util.HistogramData>> histogramData) abstract Iterable
<MetricResult<BoundedTrieResult>> Return the metric results for the bounded tries that matched the filter.abstract Iterable
<MetricResult<Long>> Return the metric results for the counters that matched the filter.abstract Iterable
<MetricResult<DistributionResult>> Return the metric results for the distributions that matched the filter.abstract Iterable
<MetricResult<GaugeResult>> Return the metric results for the gauges that matched the filter.abstract Iterable
<MetricResult<org.apache.beam.sdk.util.HistogramData>> Return the metric results for the sets that matched the filter.abstract Iterable
<MetricResult<StringSetResult>> Return the metric results for the sets that matched the filter.final String
toString()
-
Constructor Details
-
MetricQueryResults
public MetricQueryResults()
-
-
Method Details
-
getCounters
Return the metric results for the counters that matched the filter. -
getDistributions
Return the metric results for the distributions that matched the filter. -
getGauges
Return the metric results for the gauges that matched the filter. -
getStringSets
Return the metric results for the sets that matched the filter. -
getBoundedTries
Return the metric results for the bounded tries that matched the filter. -
getHistograms
Return the metric results for the sets that matched the filter. -
toString
-
create
public static MetricQueryResults create(Iterable<MetricResult<Long>> counters, Iterable<MetricResult<DistributionResult>> distributions, Iterable<MetricResult<GaugeResult>> gauges, Iterable<MetricResult<StringSetResult>> stringSets, Iterable<MetricResult<BoundedTrieResult>> boundedTries, Iterable<MetricResult<org.apache.beam.sdk.util.HistogramData>> histogramData)
-