API Documentation
Components
Component Groups
Incident Updates
Incident Templates
Metric Points
List Metric Points
GET
/
metrics
/
{metric}
/
points
Copy
Ask AI
curl --request GET \
--url http://localhost/api/metrics/{metric}/points
Copy
Ask AI
{
"data": [
{
"id": "<string>",
"type": "metricPoints",
"attributes": {
"id": 123,
"metric_id": 123,
"calculated_value": "<string>",
"value": 123,
"counter": 123,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"metric": {
"data": {
"type": "metrics",
"id": "<string>"
}
}
}
}
],
"meta": {
"current_page": 123,
"from": 123,
"path": "<string>",
"per_page": 123,
"to": 123
},
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"included": [
{
"id": "<string>",
"type": "metrics",
"attributes": {
"id": 123,
"name": "<string>",
"suffix": "<string>",
"description": "<string>",
"default_value": "<string>",
"calc_type": 0,
"display_chart": true,
"places": 123,
"default_view": 0,
"threshold": 123,
"order": 123,
"visible": 0,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"points": {
"data": [
{
"id": "<string>",
"type": "metricPoints",
"attributes": {
"id": 123,
"metric_id": 123,
"calculated_value": "<string>",
"value": 123,
"counter": 123,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"metric": {
"data": {
"type": "metrics",
"id": "<string>"
}
}
}
}
]
}
}
}
]
}
Path Parameters
The metric ID
Query Parameters
Available sorts are name
, order
, id
. You can sort by multiple options by separating them with a comma. To sort in descending order, use -
sign in front of the sort, for example: -name
.
Available includes are metric
, metricCount
, metricExists
. You can include multiple options by separating them with a comma.
How many items to show per page.
Which page to show.
Response
200
application/json
Paginated set of MetricPoint
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url http://localhost/api/metrics/{metric}/points
Copy
Ask AI
{
"data": [
{
"id": "<string>",
"type": "metricPoints",
"attributes": {
"id": 123,
"metric_id": 123,
"calculated_value": "<string>",
"value": 123,
"counter": 123,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"metric": {
"data": {
"type": "metrics",
"id": "<string>"
}
}
}
}
],
"meta": {
"current_page": 123,
"from": 123,
"path": "<string>",
"per_page": 123,
"to": 123
},
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"included": [
{
"id": "<string>",
"type": "metrics",
"attributes": {
"id": 123,
"name": "<string>",
"suffix": "<string>",
"description": "<string>",
"default_value": "<string>",
"calc_type": 0,
"display_chart": true,
"places": 123,
"default_view": 0,
"threshold": 123,
"order": 123,
"visible": 0,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"points": {
"data": [
{
"id": "<string>",
"type": "metricPoints",
"attributes": {
"id": 123,
"metric_id": 123,
"calculated_value": "<string>",
"value": 123,
"counter": 123,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"metric": {
"data": {
"type": "metrics",
"id": "<string>"
}
}
}
}
]
}
}
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.