Simulation API
Last updated
Was this helpful?
Was this helpful?
{
"success": true,
"jobId": "$jobID",
"jobName": "$jobName"
}{
"statusCode": 400,
"message": "Error message",
"error": "Error reason"
}// Example curl command
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" -d '{"jobName":"$JOBNAME","runSettings":{"interval":1000,"iteration":150,"clients":10}}' nsim.iotify.io/api/test/$TESTID/run{
"jobId": "$jobID",
"testId": "$testID",
"jobName": "$jobName",
"workspaceId": "$workspaceID",
"submitterId": "$submitterID",
"runSettings": {
"name": "Default",
"interval": 1000,
"iteration": 150,
"clients": 10,
"totalClients": 5,
"clientIdOffset": 0
},
"currentInstance": 0,
"results": {
"result": {
"total": 750,
"success": 750,
"failure": 0,
"startAt": 1667282175065.829,
"endAt": 1667282327070.1438,
"duration": 152004.31469726562,
"status": "finished",
"eta": 0
},
"instances": {
"0": {
"result": {
"total": 750,
"success": 750,
"failure": 0,
"startAt": 1667282175065.829,
"endAt": 1667282327070.1438,
"duration": 152004.31469726562,
"status": "finished",
"eta": 0
},
"iterations": {
"0": {
"result": {
"total": 5,
"success": 5,
"failure": 0,
"startAt": 1667282175065.829,
"endAt": 1667282177692.3975,
"duration": 2626.568359375,
"status": "finished",
"eta": 0
}
},
.............
"149": {
"result": {
"total": 5,
"success": 5,
"failure": 0,
"startAt": 1667282327068.5632,
"endAt": 1667282327070.1438,
"duration": 1.58056640625,
"status": "finished",
"eta": 0
}
}
}
}
}
}
}{
"statusCode": 400,
"message": "Error message"
}// Example curl command
curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/jobs/$WORKSPACE/$JOB