Metrics
Related Assets to a Metric
Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours.
get/api/v2/metrics/{metric_name}/assets
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/metrics/{metric_name}/assets
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token
Path parameters
metric_namestring required
The name of the metric.
Response
Success
Example response
{
"data": {
"id": "test.metric.latency",
"relationships": {
"dashboards": {
"data": [
{
"id": "xxx-yyy-zzz",
"type": "dashboards"
}
]
},
"monitors": {
"data": [
{
"id": "1775073",
"type": "monitors"
}
]
},
"notebooks": {
"data": [
{
"id": "12345",
"type": "notebooks"
}
]
},
"slos": {
"data": [
{
"id": "9ffef113b389520db54391d67d652dfb",
"type": "slos"
}
]
}
},
"type": "metrics"
},
"included": [
{
"attributes": {
"tags": [
"env",
"service",
"host",
"datacenter"
]
},
"id": "xxx-yyy-zzz",
"type": "dashboards"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.