The ceilometer.transformer.arithmetic Module

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.

flush()[source]
grouping_keys = ['resource_id']
handle_sample(_sample)[source]
meter_name_re = <_sre.SRE_Pattern object>
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
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.