cURL
curl --request POST \ --url http://localhost/api/metrics \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "suffix": "<string>", "calc_type": 0, "description": "<string>", "default_value": 123, "display_chart": true, "threshold": 30, "places": 123 } '
{ "data": { "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": [ { "type": "metricPoints", "id": "<string>" } ] } } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
CreateMetricRequestData
255
0
1
0 <= x <= 60
Metric
Show child attributes