Replays

Get All Replays for a Capture

Gets all replays for a given capture within an environment.

GET /api/replays?captureId={id}

Permissions

User must be logged in. User must be a member of the environment.

Body Params

Param

Description

Optional/Required

id=[number]

id of the capture to get all replays for

Required

Success Response

200 OK
[
  {
    "id": 1,
    "captureId": 1,
    "dbId": 2,
    "name": "Replay 1",
    "start": "2018-05-19T22:12:46.000Z",
    "end": "2018-05-19T22:12:58.000Z",
    "status": "DONE",
    "type": "REPLAY",
    "reason": null
  }
]

Error Response

Get a Specific Replay

Gets the information of a specific replay associated with an environment.

Permissions

User must be logged in. User must be a member of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the replay to get

Required

Success Response

Error Response

Get Metrics for a Replay

Gets the CloudWatch metrics associated with specific replay associated with an environment.

Permissions

User must be logged in. User must be a member of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the replay to get metrics for

Required

Success Response

Error Response

Edit a Replay

Edits the information of a replay.

Permissions

User must be logged in. User must either be the owner of the replay or be an admin of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the replay to edit

Required

Sample Request Body

Success Response

Error Response

Post a New Replay

Creates a new replay to be run on a capture.

Permissions

User must be logged in. User must be a member of the environment.

Body Params

Param

Description

Optional/Required

name=[string]

Name of the replay that will be displayed in the UI

Required

captureId=[number]

id of the capture that the replay belongs to

Required

dbName=[string]

Name of the AWS database resource that the replay will be running on

Required

host=[string]

Where the AWS server resource is

Required

user=[string]

Username for AWS resource

Required

pass=[string]

Password for AWS resource

Required

instance=[string]

AWS EC2 instance

Required

parameterGroup=[string]

AWS DB container for engine configuration

Required

status=[string]

Status of the replay. Must be ‘SCHEDULED’, ‘STARTED’, or ‘STARTING’

Optional

start=[date]

Time that the replay actually started

Optional

scheduledStart=[date]

Time that the replay is scheduled for

Optional

Sample Request Body

Success Response

Error Response

Delete a Replay

Deletes a specific replay associated with an environment and capture.

Permissions

User must be logged in. User must either be an owner of the replay or be an admin of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the replay to delete

Required

Success Response

Error Response

Last updated