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.DistributionResult(data)[source]

Bases: object

The result of a Distribution metric.

max
min
count
sum
mean

Returns the float mean of the distribution.

If the distribution contains no elements, it returns None.

class apache_beam.metrics.cells.GaugeResult(data)[source]

Bases: object

value
timestamp