curl --request POST \
--url http://localhost/api/metrics/{metric}/points \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"value": 123,
"timestamp": "<string>"
}'
{
"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>"
}
}
}
}
}
curl --request POST \
--url http://localhost/api/metrics/{metric}/points \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"value": 123,
"timestamp": "<string>"
}'
{
"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>"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The metric ID
CreateMetricPointRequestData
The body is of type object
.
MetricPoint
The response is of type object
.