Shadow Experiment Service

Create a shadow experiment target

POST
/projects/{projectId}/endpoints/{endpointId}/shadowExperiments/{experimentId}/targets

Adds a deployment under the same endpoint as a target for mirrored requests.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project identifier.

endpointId*string

Endpoint identifier.

experimentId*string

Shadow experiment identifier.

Request Body

application/json

Deployment under the parent endpoint that should receive mirrored requests from a shadow experiment.

name*string

Human-readable target name, unique within the shadow experiment. At most 256 characters.

targetDeploymentId*string

Deployment under the parent endpoint that receives mirrored traffic. It must not be a live traffic-split member or the source or target of an active rollout; traffic-split weight 0 warm-up targets are allowed.

description?string

Optional free-form target description.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/endpoints/string/shadowExperiments/string/targets" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "targetDeploymentId": "string"  }'
{  "id": "string",  "experimentId": "string",  "name": "string",  "targetDeploymentId": "string",  "description": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "etag": "string"}