Skip to content

CostAndUsageQuery

Source code in docs_src/capo_bcm_dashboards/types/cost_and_usage_query.py
class CostAndUsageQuery(TypedDict, closed=True):
    metrics: "capo_bcm_dashboards.types.metric_names.MetricNames"
    """<p>The specific cost and usage metrics to retrieve.</p> <note> <p>Valid values for CostAndUsageQuery metrics are <code>AmortizedCost</code>, <code>BlendedCost</code>, <code>NetAmortizedCost</code>, <code>NetUnblendedCost</code>, <code>NormalizedUsageAmount</code>, <code>UnblendedCost</code>, and <code>UsageQuantity</code>.</p> </note>"""
    time_range: "capo_bcm_dashboards.types.date_time_range.DateTimeRange"
    """<p>The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.</p>"""
    granularity: "capo_bcm_dashboards.types.granularity.Granularity"
    """<p>The granularity of the retrieved data: <code>HOURLY</code>, <code>DAILY</code>, or <code>MONTHLY</code>.</p>"""
    group_by: NotRequired[
        "capo_bcm_dashboards.types.group_definitions.GroupDefinitions"
    ]
    """<p>Specifies how to group the retrieved data, such as by <code>SERVICE</code>, <code>ACCOUNT</code>, or <code>TAG</code>.</p>"""
    filter: NotRequired["capo_bcm_dashboards.types.expression.Expression"]
    """<p>The filter expression to be applied to the cost and usage data.</p>"""

filter instance-attribute

filter: NotRequired[Expression]

The filter expression to be applied to the cost and usage data.

granularity instance-attribute

granularity: Granularity

The granularity of the retrieved data: HOURLY, DAILY, or MONTHLY.

group_by instance-attribute

group_by: NotRequired[GroupDefinitions]

Specifies how to group the retrieved data, such as by SERVICE, ACCOUNT, or TAG.

metrics instance-attribute

metrics: MetricNames

The specific cost and usage metrics to retrieve.

Valid values for CostAndUsageQuery metrics are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

time_range instance-attribute

time_range: DateTimeRange

The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.