Metric Data Sources
Authorizations
Query parameters
start-indexinteger · int32OptionalDefault:
an integer specifying the starting point (beginning with 0) when paging through a list of entities
0
max-resultsinteger · int32 · max: 100OptionalDefault:
the maximum number of results when paging through a list of metric data sources
10
Responses
200
The Metric Data Sources
application/json
get
GET /api/metric-data-sources HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
200
The Metric Data Sources
[
{
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
]
Authorizations
Body
namestringRequired
typestring · enumRequiredPossible values:
metadataone ofRequired
or
Responses
200
The newly created Metric Data Source
application/json
post
POST /api/metric-data-sources HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
200
The newly created Metric Data Source
{
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
Authorizations
Path parameters
idnumberRequired
entity ID
Responses
200
The requested Metric Data Source
application/json
get
GET /api/metric-data-sources/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
200
The requested Metric Data Source
{
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
Authorizations
Path parameters
idnumberRequired
entity ID
Body
namestringRequired
typestring · enumRequiredPossible values:
metadataone ofRequired
or
Responses
200
The updated Metric Data Source
application/json
put
PUT /api/metric-data-sources/{id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
200
The updated Metric Data Source
{
"id": 1,
"name": "text",
"type": "DATADOG",
"teams": [
{
"id": 1,
"name": "text"
}
],
"metadata": {
"region": "text",
"apiKey": "text",
"applicationKey": "text"
}
}
Was this helpful?