CostAndUsageQuery
¶
Source code in docs_src/capo_bcm_dashboards/types/cost_and_usage_query.py
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.