Metrics
Get a derived metric
Get the definition of a derived metric by name.
get/api/v2/metrics/derived-metrics/{metric_name}
Request
- Base URLhttps://api.datadoghq.com
- 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/tokenScopesmetrics_read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
metric_namestring required
The name of the metric.
Response
OK
Example response
{
"data": {
"attributes": {
"definition": {
"formula": "a",
"queries": [
{
"data_source": "metrics",
"name": "a",
"query": "avg:system.cpu.user{*}"
}
]
}
},
"id": "my.derived.metric",
"type": "derived_metrics"
}
}Changes
Changes to this operation have not been checked yet.