Package org.apache.beam.sdk.metrics
Class MetricQueryResults
- java.lang.Object
-
- org.apache.beam.sdk.metrics.MetricQueryResults
-
@Experimental(METRICS) public abstract class MetricQueryResults extends java.lang.Object
The results of a query for metrics. Allows accessing all of the metrics that matched the filter.
-
-
Constructor Summary
Constructors Constructor Description MetricQueryResults()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MetricQueryResults
create(java.lang.Iterable<MetricResult<java.lang.Long>> counters, java.lang.Iterable<MetricResult<DistributionResult>> distributions, java.lang.Iterable<MetricResult<GaugeResult>> gauges)
abstract java.lang.Iterable<MetricResult<java.lang.Long>>
getCounters()
Return the metric results for the counters that matched the filter.abstract java.lang.Iterable<MetricResult<DistributionResult>>
getDistributions()
Return the metric results for the distributions that matched the filter.abstract java.lang.Iterable<MetricResult<GaugeResult>>
getGauges()
Return the metric results for the gauges that matched the filter.java.lang.String
toString()
-
-
-
Method Detail
-
getCounters
public abstract java.lang.Iterable<MetricResult<java.lang.Long>> getCounters()
Return the metric results for the counters that matched the filter.
-
getDistributions
public abstract java.lang.Iterable<MetricResult<DistributionResult>> getDistributions()
Return the metric results for the distributions that matched the filter.
-
getGauges
public abstract java.lang.Iterable<MetricResult<GaugeResult>> getGauges()
Return the metric results for the gauges that matched the filter.
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public static MetricQueryResults create(java.lang.Iterable<MetricResult<java.lang.Long>> counters, java.lang.Iterable<MetricResult<DistributionResult>> distributions, java.lang.Iterable<MetricResult<GaugeResult>> gauges)
-
-