API Documentation
Components
Component Groups
Incident Updates
Incident Templates
Metric Points
Create Metric Point
POST
/
metrics
/
{metric}
/
points
Copy
Ask AI
curl --request POST \
--url http://localhost/api/metrics/{metric}/points \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"value": 123,
"timestamp": "<string>"
}'
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>"
}
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The metric ID
Body
application/json
CreateMetricPointRequestData
The body is of type object
.
Response
201
application/json
MetricPoint
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url http://localhost/api/metrics/{metric}/points \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"value": 123,
"timestamp": "<string>"
}'
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>"
}
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.