Skip to content

CostComparisonDriver

Source code in docs_src/capo_cost_explorer/types/cost_comparison_driver.py
class CostComparisonDriver(TypedDict, closed=True):
    cost_selector: NotRequired["capo_cost_explorer.types.expression.Expression"]
    metrics: NotRequired[
        "capo_cost_explorer.types.comparison_metrics.ComparisonMetrics"
    ]
    """<p>A mapping of metric names to their comparison values.</p>"""
    cost_drivers: NotRequired["capo_cost_explorer.types.cost_drivers.CostDrivers"]
    """<p>An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.</p>"""

cost_drivers instance-attribute

cost_drivers: NotRequired[CostDrivers]

An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.

cost_selector instance-attribute

cost_selector: NotRequired[Expression]

metrics instance-attribute

metrics: NotRequired[ComparisonMetrics]

A mapping of metric names to their comparison values.