Metrics
On this page, we’ll dive into the different metric endpoints you can use to manage metrics metadata programmatically. We'll look at how to query, and update metrics metadata.
The metric model
The metric model contains all the information about the metrics metadata sent to Unblind.
Properties
- Name
id- Type
- string
- Description
Unique identifier for the metric.
- Name
name- Type
- string
- Description
Metric's name.
- Name
description- Type
- string
- Description
Metric's description.
- Name
metric_type- Type
- string
- Description
Metric's type.
- Name
unit- Type
- object
- Description
Metric's unit.
GET/v1/metrics
List all metrics
This endpoint allows you to retrieve a paginated list of all your metrics. By default, a maximum of a hundred metrics are shown per page.
Request
GET
/v1/metricscurl https://api.unblind.dev/v1/metrics \
-X GET \
-H "Authorization: Bearer <API_KEY>" \
-d limit=50
Response
[
{
"name": "nodejs.eventloop.delay.p50",
"description": "NodeJS event loop delay P50",
"unit": {
"name": "Milliseconds",
"short_name": "ms"
}
},
{
"name": "nodejs.eventloop.delay.p90",
// ...
}
]