Metrics
The Bearer API key of your user more info.
an integer specifying the starting point (beginning with 0) when paging through a list of entities
0the maximum number of results when paging through a list of metrics. (Note: when using ?include maximum is reduced to 25)
10The metrics
GET /api/metrics HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
The metrics
[
{
"id": 1,
"name": "text",
"description": "text",
"aggregationType": "AVG",
"displayType": "GRAPH",
"interpolateGaps": false,
"lockYAxisMax": 1,
"lockYAxisMin": 1,
"mouseOverDecimal": 1,
"showValuesOnMouseOver": false,
"teams": [
{
"id": 1,
"name": "text"
}
],
"unitLabel": "text",
"integrationKey": "text",
"dataSource": {
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
]
}
}
]The Bearer API key of your user more info.
falsefalseOnly required if the metric has a dataSource. You may not change this after creation.
nullThe newly created metric
POST /api/metrics HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 283
{
"name": "text",
"description": "text",
"aggregationType": "AVG",
"displayType": "GRAPH",
"interpolateGaps": false,
"lockYAxisMax": 1,
"lockYAxisMin": 1,
"mouseOverDecimal": 1,
"showValuesOnMouseOver": false,
"teams": [
{
"id": 1,
"name": "text"
}
],
"unitLabel": "text",
"metadata": "null",
"dataSource": {
"id": 1
}
}The newly created metric
{
"id": 1,
"name": "text",
"description": "text",
"aggregationType": "AVG",
"displayType": "GRAPH",
"interpolateGaps": false,
"lockYAxisMax": 1,
"lockYAxisMin": 1,
"mouseOverDecimal": 1,
"showValuesOnMouseOver": false,
"teams": [
{
"id": 1,
"name": "text"
}
],
"unitLabel": "text",
"integrationKey": "text",
"metadata": "null",
"dataSource": {
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
}The Bearer API key of your user more info.
entity ID
The requested metric
GET /api/metrics/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
The requested metric
{
"id": 1,
"name": "text",
"description": "text",
"aggregationType": "AVG",
"displayType": "GRAPH",
"interpolateGaps": false,
"lockYAxisMax": 1,
"lockYAxisMin": 1,
"mouseOverDecimal": 1,
"showValuesOnMouseOver": false,
"teams": [
{
"id": 1,
"name": "text"
}
],
"unitLabel": "text",
"integrationKey": "text",
"metadata": "null",
"dataSource": {
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
}The Bearer API key of your user more info.
entity ID
falsefalseOnly required if the metric has a dataSource. You may not change this after creation.
nullThe updated metric
PUT /api/metrics/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 283
{
"name": "text",
"description": "text",
"aggregationType": "AVG",
"displayType": "GRAPH",
"interpolateGaps": false,
"lockYAxisMax": 1,
"lockYAxisMin": 1,
"mouseOverDecimal": 1,
"showValuesOnMouseOver": false,
"teams": [
{
"id": 1,
"name": "text"
}
],
"unitLabel": "text",
"metadata": "null",
"dataSource": {
"id": 1
}
}The updated metric
{
"id": 1,
"name": "text",
"description": "text",
"aggregationType": "AVG",
"displayType": "GRAPH",
"interpolateGaps": false,
"lockYAxisMax": 1,
"lockYAxisMin": 1,
"mouseOverDecimal": 1,
"showValuesOnMouseOver": false,
"teams": [
{
"id": 1,
"name": "text"
}
],
"unitLabel": "text",
"integrationKey": "text",
"metadata": "null",
"dataSource": {
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
}The Bearer API key of your user more info.
entity ID
Empty body delete response
DELETE /api/metrics/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
Empty body delete response
No content
Last updated
Was this helpful?