aws_billing_raw | R Documentation |
Fetch billing data - rawest form
aws_billing_raw(
date_start,
metrics,
granularity = "daily",
filter = NULL,
group_by = NULL,
date_end = as.character(Sys.Date())
)
date_start , date_end |
Start and end date to get billing data for.
Date format expected: |
metrics |
(character) which metrics to return. required. One of: AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity |
granularity |
(character) monthly, daily, hourly. required. |
filter |
(list) filters costs by different dimensions. optional. |
group_by |
(list) group costs using up to two different groups, either dimensions, tag keys, cost categories, or any two group by types. optional. |
list with slots for:
NextPageToken
GroupDefinitions
ResultsByTime
DimensionValueAttributes
Other billing:
aws_billing()
library(lubridate)
aws_billing_raw(date_start = today() - days(3), metrics = "BlendedCost")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.