Injector Status
This Eggplant Performance Test Controller REST method gets the current status of the injectors in the test run.
URL
/test_controller/api/1.0/<workspace>/<project>/<test>/injector_status
HTTP Method
GET: Gets the current status of the injectors in the test run
Response Parameters
The response will be an object with an entry for each injector family. Within each injector family there will be an object for each injector in the test run.
For each injector, there will be an object containing the following:
Parameter | Type | Description |
---|---|---|
CPU | Float | The % CPU usage on the injector. |
availableMemory | Integer | The amount of available memory, in bytes, on the injector. |
bytesSentPerSecond | Float | The number of bytes sent per second over the network on the injector machine. |
bytesRecvPerSecond | Float | The number of bytes received per second over the network on the injector machine. |
availableDisk | Object | The available space on each of the disks on the injector machine. |
engines | Object | The state of each of the engines running on the injector machine. |
connectionLost | Boolean | Whether or not the test controller server has lost the network connection to the injector. |
Example Request
http:/test_controller/api/1.0/Demo%20Workspace/Demo/demoScript/injector_status
Example Response
{
"This machine": {
"localhost": {
"availableMemory": 18556059648,
"engines": {
"29.intel.win32.java.0": "Running"
},
"bytesSentPerSecond": 10708.2,
"availableDisk": {
"Local Fixed Disk (C:)": 598931853312,
"Local Fixed Disk (E:)": 967407443968
},
"bytesRecvPerSecond": 12621.166666666666,
"connectionLost": false,
"CPU": 7.220112862500427
}
},
"This machine again": {
"localhost2": {
"availableMemory": 18556059648,
"engines": {
"29.intel.win32.java.0": "Running"
},
"bytesSentPerSecond": 10708.2,
"availableDisk": {
"Local Fixed Disk (C:)": 598931853312,
"Local Fixed Disk (E:)": 967407443968
},
"bytesRecvPerSecond": 12648.666666666666,
"connectionLost": false,
"CPU": 7.213400625324318
}
}
}