apache_beam.metrics.cells module
This file contains metric cell classes. A metric cell is used to accumulate in-memory changes to a metric. It represents a specific metric in a single context.
- class apache_beam.metrics.cells.MetricCell
Bases:
object
For internal use only; no backwards-compatibility guarantees.
Accumulates in-memory changes to a metric.
A MetricCell represents a specific metric in a single context and bundle. All subclasses must be thread safe, as these are used in the pipeline runners, and may be subject to parallel/concurrent updates. Cells should only be used directly within a runner.
- get_cumulative()
- reset()
- to_runner_api_monitoring_info(name, transform_id)
- to_runner_api_monitoring_info_impl(name, transform_id)
- update(value)