Class: Aws::BCMDashboards::Types::CostAndUsageQuery

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#filterTypes::Expression

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

Returns:



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

#granularityString

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

Returns:

  • (String)


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_byArray<Types::GroupDefinition>

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

Returns:



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

#metricsArray<String>

The specific cost and usage metrics to retrieve.

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

Returns:

  • (Array<String>)


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_rangeTypes::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