Skip to main content

Eggplant Performance Test Controller:GET SUT Measurement Method

This method gets the values of a SUT measurement over the course of the test run.

URL

/test_controller/api/1.0/<workspace>/<project>/<test>/sut_measurements/<SUT measurement name>

HTTP Method

GET: Gets the values of a SUT measurement over the course of the test run

URL Query Parameters

The following can be added to the URL as query parameters:

ParameterDescription
after_timeA time, expressed in milliseconds since Jan. 1 1970. Only values collected after this time will be returned.
bucket_sizeA time interval, expressed in seconds. Returned data will be resampled to this interval.

Response Parameters

TypeDescription
<timestamp>A timestamp object which includes an object mapping monitoring targets to the value of the SUT measurement at the timestamp.

Example Request

http://localhost:5001/test_controller/api/1.0/Demo%20Workspace/Demo/demoScript/sut_measurements/%5CProcessor(_Total)%5C%25%20Processor%20Time?after_time=147409660000&bucket_size=30

Example Response

{
"2016-09-17T07:09:00.000Z": {
"MonTarget01": 7.111
},
"2016-09-17T07:09:30.000Z": {
"MonTarget01": 11.861
},
"2016-09-17T07:10:00.000Z": {
"MonTarget01": 9.919
},
"2016-09-17T07:10:30.000Z": {
"MonTarget01": 8.351
}
}