apache_beam.runners.direct.direct_metrics module
DirectRunner implementation of MetricResults. It is in charge not only of responding to queries of current metrics, but also of keeping the common state consistent.
- class apache_beam.runners.direct.direct_metrics.MetricAggregator[source]
Bases:
objectFor internal use only; no backwards-compatibility guarantees.
Base interface for aggregating metric data during pipeline execution.
- class apache_beam.runners.direct.direct_metrics.CounterAggregator[source]
Bases:
MetricAggregatorFor internal use only; no backwards-compatibility guarantees.
Aggregator for Counter metric data during pipeline execution.
Values aggregated should be
intobjects.- combine(x: SupportsInt, y: SupportsInt) int[source]
- result(x: SupportsInt) int[source]
- class apache_beam.runners.direct.direct_metrics.GenericAggregator(data_class)[source]
Bases:
MetricAggregator