Metrics
Enable historical metrics ingestion
Enable historical metrics ingestion (late data ingestion) for a metric. Idempotent: enabling an already-enabled metric returns 200 instead of 201. Not supported for distribution metrics, metrics with an existing tag configuration, or most standard (non-custom) metrics.
post/api/v2/metrics/historical-metrics-configurations
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/tokenScopeslate_metrics_config_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"id": "dd.test.metric",
"type": "historical_metrics_configurations"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"created_at": "2024-01-15T12:00:00.000Z"
},
"id": "dd.test.metric",
"type": "historical_metrics_configurations"
}
}Changes
Changes to this operation have not been checked yet.