v1

latestSwagger 2.02026-07-17172265595.1 KB
analytics

Get Cost Trend

Retrieving a list of costs over the course of the specified time frame based on the given input filters. If startTime and endTime are empty, the API returns the last month trend.

get/inventory/api/v2/analytics/spend/trend

Query parameters

connectorstring[]

Connector type to filter by

connectionIdstring[]

Connection IDs to filter by - mutually exclusive with connectionGroup

connectionGroupstring[]

Connection group to filter by - mutually exclusive with connectionId

metricIdsstring[]

Metrics IDs

startTimeinteger

timestamp for start in epoch seconds

endTimeinteger

timestamp for end in epoch seconds

granularity'monthly' | 'daily' | 'yearly'

Granularity of the table, default is daily

Response

OK

costnumber
datestring date-time
totalConnectionCountinteger
totalSuccessfulDescribedConnectionCountinteger