apache_beam.metrics.metricbase module¶
The classes in this file are interfaces for metrics. They are not intended to be subclassed or created directly by users. To work with and access metrics, users should use the classes and methods exposed in metric.py.
Available classes:
- Metric - Base interface of a metrics object.
 - Counter - Counter metric interface. Allows a count to be incremented or
 - decremented during pipeline execution.
 
- Distribution - Distribution Metric interface. Allows statistics about the
 - distribution of a variable to be collected during pipeline execution.
 
- MetricName - Namespace and name used to refer to a Metric.
 
- 
class 
apache_beam.metrics.metricbase.MetricName(namespace, name)[source]¶ Bases:
objectThe name of a metric.
The name of a metric consists of a namespace and a name. The namespace allows grouping related metrics together and also prevents collisions between multiple metrics of the same name.
Initializes
MetricName.Parameters: - namespace – A string with the namespace of a metric.
 - name – A string with the name of a metric.
 
- 
class 
apache_beam.metrics.metricbase.Metric[source]¶ Bases:
objectBase interface of a metric object.
- 
class 
apache_beam.metrics.metricbase.Counter[source]¶ Bases:
apache_beam.metrics.metricbase.MetricCounter metric interface. Allows a count to be incremented/decremented during pipeline execution.
- 
class 
apache_beam.metrics.metricbase.Distribution[source]¶ Bases:
apache_beam.metrics.metricbase.MetricDistribution Metric interface. Allows statistics about the distribution of a variable to be collected during pipeline execution.