Class: Aws::BCMDashboards::Types::CostAndUsageQuery
- Inherits:
-
Struct
- Object
- Struct
- Aws::BCMDashboards::Types::CostAndUsageQuery
- Defined in:
- gems/aws-sdk-bcmdashboards/lib/aws-sdk-bcmdashboards/types.rb
Overview
Defines the parameters for retrieving Amazon Web Services cost and usage data. Includes specifications for metrics, time periods, granularity, grouping dimensions, and filtering conditions.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#filter ⇒ Types::Expression
The filter expression to be applied to the cost and usage data.
-
#granularity ⇒ String
The granularity of the retrieved data:
HOURLY
,DAILY
, orMONTHLY
. -
#group_by ⇒ Array<Types::GroupDefinition>
Specifies how to group the retrieved data, such as by
SERVICE
,ACCOUNT
, orTAG
. -
#metrics ⇒ Array<String>
The specific cost and usage metrics to retrieve.
-
#time_range ⇒ Types::DateTimeRange
The time period for which to retrieve data.
Instance Attribute Details
#filter ⇒ Types::Expression
The filter expression to be applied to the cost and usage data.
62 63 64 65 66 67 68 69 70 |
# File 'gems/aws-sdk-bcmdashboards/lib/aws-sdk-bcmdashboards/types.rb', line 62 class CostAndUsageQuery < Struct.new( :metrics, :time_range, :granularity, :group_by, :filter) SENSITIVE = [] include Aws::Structure end |
#granularity ⇒ String
The granularity of the retrieved data: HOURLY
, DAILY
, or
MONTHLY
.
62 63 64 65 66 67 68 69 70 |
# File 'gems/aws-sdk-bcmdashboards/lib/aws-sdk-bcmdashboards/types.rb', line 62 class CostAndUsageQuery < Struct.new( :metrics, :time_range, :granularity, :group_by, :filter) SENSITIVE = [] include Aws::Structure end |
#group_by ⇒ Array<Types::GroupDefinition>
Specifies how to group the retrieved data, such as by SERVICE
,
ACCOUNT
, or TAG
.
62 63 64 65 66 67 68 69 70 |
# File 'gems/aws-sdk-bcmdashboards/lib/aws-sdk-bcmdashboards/types.rb', line 62 class CostAndUsageQuery < Struct.new( :metrics, :time_range, :granularity, :group_by, :filter) SENSITIVE = [] include Aws::Structure end |
#metrics ⇒ Array<String>
The specific cost and usage metrics to retrieve.
AmortizedCost
,
BlendedCost
, NetAmortizedCost
, NetUnblendedCost
,
NormalizedUsageAmount
, UnblendedCost
, and UsageQuantity
.
62 63 64 65 66 67 68 69 70 |
# File 'gems/aws-sdk-bcmdashboards/lib/aws-sdk-bcmdashboards/types.rb', line 62 class CostAndUsageQuery < Struct.new( :metrics, :time_range, :granularity, :group_by, :filter) SENSITIVE = [] include Aws::Structure end |
#time_range ⇒ Types::DateTimeRange
The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.
62 63 64 65 66 67 68 69 70 |
# File 'gems/aws-sdk-bcmdashboards/lib/aws-sdk-bcmdashboards/types.rb', line 62 class CostAndUsageQuery < Struct.new( :metrics, :time_range, :granularity, :group_by, :filter) SENSITIVE = [] include Aws::Structure end |