Metric Points
Create Metric Point
API Documentation
Components
Component Groups
Incident Updates
Incident Templates
Metric Points
Create Metric Point
POST
/
metrics
/
{metric}
/
points
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": "<string>",
"metric_id": "<string>",
"calculated_value": "<string>",
"value": "<string>",
"counter": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"metric": {
"data": {
"id": "<string>",
"type": "metrics",
"attributes": {
"id": "<string>",
"name": "<string>",
"suffix": "<string>",
"description": "<string>",
"default_value": "<string>",
"calc_type": "<string>",
"display_chart": "<string>",
"places": "<string>",
"default_view": "<string>",
"threshold": "<string>",
"order": "<string>",
"visible": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"points": {
"data": [
{}
]
}
}
}
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The metric ID
Response
201
application/json
`MetricPoint`
Available options:
metricPoints
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": "<string>",
"metric_id": "<string>",
"calculated_value": "<string>",
"value": "<string>",
"counter": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"metric": {
"data": {
"id": "<string>",
"type": "metrics",
"attributes": {
"id": "<string>",
"name": "<string>",
"suffix": "<string>",
"description": "<string>",
"default_value": "<string>",
"calc_type": "<string>",
"display_chart": "<string>",
"places": "<string>",
"default_view": "<string>",
"threshold": "<string>",
"order": "<string>",
"visible": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"points": {
"data": [
{}
]
}
}
}
}
}
}
}