For the complete documentation index, see llms.txt. This page is also available as Markdown.

Metric Data Sources

Get Metric Data Sources

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

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
idnumberOptional
namestringOptional
typestring · enumOptionalPossible values:
metadataone ofOptional
or
statusstring · enumRead-onlyOptional

This is an include field, it is not available in the list resource

Possible values:
lastStatusTransitionstring · date-timeRead-onlyOptional

This is an include field, it is not available in the list resource

lastErrorstringRead-onlyOptional

This is an include field, it is not available in the list resource

get/metric-data-sources
GET /api/metric-data-sources HTTP/1.1
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"
    },
    "managedBy": {
      "type": "API",
      "source": "text"
    },
    "status": "OK",
    "lastStatusTransition": "2026-01-01T00:00:00.000Z",
    "lastError": "text"
  }
]

Create a new Metric Data Source.

post
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Body
namestringRequired
typestring · enumRequiredPossible values:
metadataone ofRequired
or
Responses
200

The newly created Metric Data Source

application/json
idnumberOptional
namestringOptional
typestring · enumOptionalPossible values:
metadataone ofOptional
or
statusstring · enumRead-onlyOptional

This is an include field, it is not available in the list resource

Possible values:
lastStatusTransitionstring · date-timeRead-onlyOptional

This is an include field, it is not available in the list resource

lastErrorstringRead-onlyOptional

This is an include field, it is not available in the list resource

post/metric-data-sources
POST /api/metric-data-sources HTTP/1.1
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"
  },
  "managedBy": {
    "type": "API",
    "source": "text"
  },
  "status": "OK",
  "lastStatusTransition": "2026-01-01T00:00:00.000Z",
  "lastError": "text"
}

Get a specific Metric Data Source

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Query parameters
Responses
200

The requested Metric Data Source

application/json
idnumberOptional
namestringOptional
typestring · enumOptionalPossible values:
metadataone ofOptional
or
statusstring · enumRead-onlyOptional

This is an include field, it is not available in the list resource

Possible values:
lastStatusTransitionstring · date-timeRead-onlyOptional

This is an include field, it is not available in the list resource

lastErrorstringRead-onlyOptional

This is an include field, it is not available in the list resource

get/metric-data-sources/{id}
GET /api/metric-data-sources/{id} HTTP/1.1
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"
  },
  "managedBy": {
    "type": "API",
    "source": "text"
  },
  "status": "OK",
  "lastStatusTransition": "2026-01-01T00:00:00.000Z",
  "lastError": "text"
}

Update the specific Metric Data Source

put
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Body
namestringRequired
typestring · enumRequiredPossible values:
metadataone ofRequired
or
Responses
200

The updated Metric Data Source

application/json
idnumberOptional
namestringOptional
typestring · enumOptionalPossible values:
metadataone ofOptional
or
statusstring · enumRead-onlyOptional

This is an include field, it is not available in the list resource

Possible values:
lastStatusTransitionstring · date-timeRead-onlyOptional

This is an include field, it is not available in the list resource

lastErrorstringRead-onlyOptional

This is an include field, it is not available in the list resource

put/metric-data-sources/{id}
PUT /api/metric-data-sources/{id} HTTP/1.1
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"
  },
  "managedBy": {
    "type": "API",
    "source": "text"
  },
  "status": "OK",
  "lastStatusTransition": "2026-01-01T00:00:00.000Z",
  "lastError": "text"
}

Delete a specific Metric Data Source

delete
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Responses
204

Empty body delete response

delete/metric-data-sources/{id}
DELETE /api/metric-data-sources/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

Empty body delete response

No content

Get the metric data source with the specified name.

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
namestringRequired

unique name of the metric data source

Query parameters
Responses
200

The requested Metric Data Source

application/json
idnumberOptional
namestringOptional
typestring · enumOptionalPossible values:
metadataone ofOptional
or
statusstring · enumRead-onlyOptional

This is an include field, it is not available in the list resource

Possible values:
lastStatusTransitionstring · date-timeRead-onlyOptional

This is an include field, it is not available in the list resource

lastErrorstringRead-onlyOptional

This is an include field, it is not available in the list resource

get/metric-data-sources/name/{name}
GET /api/metric-data-sources/name/{name} HTTP/1.1
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"
  },
  "managedBy": {
    "type": "API",
    "source": "text"
  },
  "status": "OK",
  "lastStatusTransition": "2026-01-01T00:00:00.000Z",
  "lastError": "text"
}

Last updated

Was this helpful?