Skip to main content
GET
/
metrics
List metrics
curl --request GET \
  --url https://api.example.com/metrics \
  --header 'Authorization: Bearer <token>'
{
  "metrics": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "<string>",
      "project_id": "<string>",
      "project_name": "<string>",
      "preset": true,
      "description": "<string>",
      "collection_type": "<string>",
      "agent_name": "<string>",
      "sampling_rate": 123,
      "created_at": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

project_id
string<uuid>
required

Project whose metrics to list.

Response

Successful Response

metrics
MetricSummaryRow · object[]
required