Skip to main content
GET
List metrics

Authorizations

Authorization
string
header
required

Path Parameters

projectKey
string<string>
required

The project key

Query Parameters

expand
string<string>

A comma-separated list of properties that can reveal additional information in the response.

limit
integer<int64>

The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.

offset
integer<int64>

Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next limit items.

sort
string<string>

A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by createdAt or name.

filter
string<string>

A comma-separated list of filters. This endpoint accepts filtering by query, tags, eventKind, isNumeric, unitAggregationType, hasConnections, maintainerIds, maintainerTeamKey, view, dataSourceKeys, metricUsedIn, eventKeys, and versionIds. To learn more about the filter syntax, read the 'Filtering metrics' section above.

Response

Metrics collection response

items
object[]

An array of metrics

The location and content type of related resources

Example:
totalCount
integer