Skip to content

MetricCalculation

Source code in docs_src/capo_connect/types/metric_calculation.py
class MetricCalculation(TypedDict, closed=True):
    calculation_components: (
        "capo_connect.types.calculation_component_list.CalculationComponentList"
    )
    """<p>The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.</p>"""
    calculation: "capo_connect.types.calculation_expression.CalculationExpression"
    """<p>The formula expression that defines how the metric is calculated. Uses component aliases (for example, <code>100 * SUM(M1) / SUM(M2)</code>).</p>"""

calculation instance-attribute

calculation: CalculationExpression

The formula expression that defines how the metric is calculated. Uses component aliases (for example, 100 * SUM(M1) / SUM(M2)).

calculation_components instance-attribute

calculation_components: CalculationComponentList

The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.