Metric Data Sources

Get Metric Data Sources

get
Authorizations
Query parameters
start-indexinteger · int32Optional

an integer specifying the starting point (beginning with 0) when paging through a list of entities

Default: 0
max-resultsinteger · int32 · max: 100Optional

the maximum number of results when paging through a list of metric data sources

Default: 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"
    }
  }
]

Create a new Metric Data Source.

post
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"
  }
}

Get a specific Metric Data Source

get
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"
  }
}

Update the specific Metric Data Source

put
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"
  }
}

Delete a specific Metric Data Source

delete
Authorizations
Path parameters
idnumberRequired

entity ID

Responses
204
Empty body delete response
delete
DELETE /api/metric-data-sources/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
204

Empty body delete response

No content

Was this helpful?