Skip to content

Get Approximate Usage Records

costexplorer_get_approximate_usage_records R Documentation

Retrieves estimated usage records for hourly granularity or resource-level data at daily granularity

Description

Retrieves estimated usage records for hourly granularity or resource-level data at daily granularity.

Usage

costexplorer_get_approximate_usage_records(Granularity, Services,
  ApproximationDimension)

Arguments

Granularity

[required] How granular you want the data to be. You can enable data at hourly or daily granularity.

Services

The service metadata for the service or services you want to query. If not specified, all elements are returned.

ApproximationDimension

[required] The service to evaluate for the usage records. You can choose resource-level data at daily granularity, or hourly granularity with or without resource-level data.

Value

A list with the following syntax:

list(
  Services = list(
    123
  ),
  TotalRecords = 123,
  LookbackPeriod = list(
    Start = "string",
    End = "string"
  )
)

Request syntax

svc$get_approximate_usage_records(
  Granularity = "DAILY"|"MONTHLY"|"HOURLY",
  Services = list(
    "string"
  ),
  ApproximationDimension = "SERVICE"|"RESOURCE"
)