/AWS1/CL_BCDCOSTANDUSAGEQUERY¶
Defines the parameters for retrieving Amazon Web Services cost and usage data. Includes specifications for metrics, time periods, granularity, grouping dimensions, and filtering conditions.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
it_metrics TYPE /AWS1/CL_BCDMETRICNAMES_W=>TT_METRICNAMES TT_METRICNAMES¶
The specific cost and usage metrics to retrieve.
Valid values for CostAndUsageQuery metrics are
AmortizedCost,BlendedCost,NetAmortizedCost,NetUnblendedCost,NormalizedUsageAmount,UnblendedCost, andUsageQuantity.
io_timerange TYPE REF TO /AWS1/CL_BCDDATETIMERANGE /AWS1/CL_BCDDATETIMERANGE¶
The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.
iv_granularity TYPE /AWS1/BCDGRANULARITY /AWS1/BCDGRANULARITY¶
The granularity of the retrieved data:
HOURLY,DAILY, orMONTHLY.
Optional arguments:¶
it_groupby TYPE /AWS1/CL_BCDGROUPDEFINITION=>TT_GROUPDEFINITIONS TT_GROUPDEFINITIONS¶
Specifies how to group the retrieved data, such as by
SERVICE,ACCOUNT, orTAG.
io_filter TYPE REF TO /AWS1/CL_BCDEXPRESSION /AWS1/CL_BCDEXPRESSION¶
The filter expression to be applied to the cost and usage data.
Queryable Attributes¶
metrics¶
The specific cost and usage metrics to retrieve.
Valid values for CostAndUsageQuery metrics are
AmortizedCost,BlendedCost,NetAmortizedCost,NetUnblendedCost,NormalizedUsageAmount,UnblendedCost, andUsageQuantity.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_METRICS() |
Getter for METRICS, with configurable default |
ASK_METRICS() |
Getter for METRICS w/ exceptions if field has no value |
HAS_METRICS() |
Determine if METRICS has a value |
timeRange¶
The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TIMERANGE() |
Getter for TIMERANGE |
granularity¶
The granularity of the retrieved data:
HOURLY,DAILY, orMONTHLY.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_GRANULARITY() |
Getter for GRANULARITY, with configurable default |
ASK_GRANULARITY() |
Getter for GRANULARITY w/ exceptions if field has no value |
HAS_GRANULARITY() |
Determine if GRANULARITY has a value |
groupBy¶
Specifies how to group the retrieved data, such as by
SERVICE,ACCOUNT, orTAG.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_GROUPBY() |
Getter for GROUPBY, with configurable default |
ASK_GROUPBY() |
Getter for GROUPBY w/ exceptions if field has no value |
HAS_GROUPBY() |
Determine if GROUPBY has a value |
filter¶
The filter expression to be applied to the cost and usage data.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FILTER() |
Getter for FILTER |