Experiments
Create experiment metric group
Create a non-decision metric group. The optional metrics array is ordered. Decision groups remain managed through decision_metrics on the experiment resource. This operation does not synchronously recompute results.
post/api/v2/experiments/{experiment_id}/metric-groups
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/tokenScopesproduct_analytics_experiments_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
experiment_idstring uuid required
The UUID of the experiment.
Example:550e8400-e29b-41d4-a716-446655440000
Request body
Example request
{
"data": {
"attributes": {
"metrics": [
{
"metric_id": "550e8400-e29b-41d4-a716-446655440021"
}
],
"name": "Diagnostics"
},
"type": "experiment-metric-groups"
}
}Response
Created
Example response
{
"data": {
"attributes": {
"metrics": [
{
"metric_id": "550e8400-e29b-41d4-a716-446655440000",
"metric_name": "metric name"
}
]
},
"id": "550e8400-e29b-41d4-a716-446655440022",
"type": "experiment-metric-groups"
},
"meta": {
"warnings": [
{
"code": "code",
"detail": "detail"
}
]
}
}Changes
Changes to this operation have not been checked yet.