---
title: "List analytics metrics"
method: GET
path: "/inventory/api/v2/analytics/metric"
tags: ["analytics"]
---

# List analytics metrics

`GET /inventory/api/v2/analytics/metric`

Retrieving list of analytics with metrics of each type based on the given input filters.

## Query parameters

- `tag` string[]
- `metricType` 'assets' | 'spend'
- `integrationType` string[]
- `connectionId` string[]
- `connectionGroup` string[]
- `resourceCollection` string[]
- `metricIDs` string[]
- `endTime` integer
- `startTime` integer
- `minCount` integer
- `sortBy` 'name' | 'count' | 'growth' | 'growth_rate'
- `pageSize` integer
- `pageNumber` integer

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgInventoryApiListMetricsResponse
  - `metrics` GithubComOpengovernOpengovernancePkgInventoryApiMetric[]
    - `count` integer — Number of Resources of this Resource Type - Metric
    - `finderPerConnectionQuery` string
    - `finderQuery` string
    - `id` string
    - `integrationTypes` string[] — Cloud Provider
    - `last_evaluated` string — Last time the metric was evaluated
    - `name` string — Resource Type
    - `old_count` integer — Number of Resources of this Resource Type in the past - Metric
    - `tags` object — Tags
  - `total_count` integer
  - `total_metrics` integer
  - `total_old_count` integer

---

[API](https://skmtc.net/opengovern/apis/opengovernance-service-api.md) · [All operations](https://skmtc.net/opengovern/apis/opengovernance-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opengovern/opengovernance-service-api/versions/ab05295c4094/schema)
