v1
latestSwagger 2.02026-07-17172265595.1 KBanalytics
Get metric trend
Retrieving a list of resource counts over the course of the specified time frame based on the given input filters
get/inventory/api/v2/analytics/trend
Query parameters
tagstring[]
Key-Value tags in key=value format to filter by
metricType'assets' | 'spend'
Metric type, default: assets
idsstring[]
Metric IDs to filter by
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
resourceCollectionstring[]
Resource collection IDs to filter by
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
Example response
[
{
"count": 100
}
]