The ceilometer.transformer.arithmetic Module

class ceilometer.transformer.arithmetic.ArithmeticTransformer(target=None, **kwargs)[source]

Bases: ceilometer.transformer.TransformerBase

Multi meter arithmetic transformer.

Transformer that performs arithmetic operations over one or more meters and/or their metadata.

handle_sample(context, _sample)[source]
classmethod parse_expr(expr)[source]

Transforms meter names in the expression into valid identifiers.

Parameters:expr – unescaped expression
Returns:A tuple of the escaped expression and a dict representing the translation of meter names into Python identifiers

Previous topic

The ceilometer.transformer.accumulator Module

Next topic

The ceilometer.transformer.conversions Module

Project Source

This Page