Runner

Start load

POST /api/megaload/start_load/:familyUUID

Input

Name Type Info
id string Test identifier

Example

{"id" : "test-1"}

Example request

curl http://localhost:8080/api/megaload/start_load/c719a664-83cb-4ab5-b02f-0f91f3e6f512  --data "{\"id\" : \"test-1\"}" --header "Content-Type: application/json"

Example response

Status: 200 OK
{}

Stop load

POST /api/megaload/stop_load/:familyUUID

Example request

curl http://localhost:8080/api/megaload/stop_load/c719a664-83cb-4ab5-b02f-0f91f3e6f512  --data "" --header "Content-Type: application/json"

Example response

Status: 200 OK
{}

Is test running

GET /api/megaload/is_running/:familyUUID

Returns

The current state of the Megaload cluster and the test identifier (if applies). Possible states are: running | stopping | stopped | finishing | finished | standby

Example request

curl http://localhost:8080/api/megaload/is_running/c719a664-83cb-4ab5-b02f-0f91f3e6f512

Example response

Status: 200 OK
{"state" : "running",
 "id" : "test-1"}