Create a shadow experiment
Creates an experiment that mirrors a sampled portion of endpoint traffic to one or more target deployments without returning their responses to clients. Add a description with the update operation after creation.
Authorization
bearerAuth In: header
Path Parameters
Project identifier.
Endpoint identifier.
Request Body
application/json
Sampling strategy and optional initial targets for mirroring endpoint requests without affecting client responses.
Human-readable shadow experiment name, unique within the endpoint. At most 256 characters.
Endpoint source and sampling configuration for the experiment.
Optional initial target deployments. At most 100 targets; manage later changes through the target APIs.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/projects/string/endpoints/string/shadowExperiments" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "source": { "endpoint": { "sampling": { "uniform": { "rate": 0 } } } } }'{ "id": "string", "projectId": "string", "endpointId": "string", "name": "string", "description": "string", "source": { "endpoint": { "sampling": { "uniform": { "rate": 0 } } } }, "targets": [ { "id": "string", "experimentId": "string", "name": "string", "targetDeploymentId": "string", "description": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "etag": "string" } ], "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "etag": "string", "state": "SHADOW_EXPERIMENT_STATE_ACTIVE"}List shadow experiments GET
Lists experiments that mirror sampled endpoint traffic to target deployments without affecting client responses. Set `includeTargets=true` to include target details inline.
Get a shadow experiment GET
Retrieves a shadow experiment, including its sampling strategy and target deployments.