Skip to main content

Comparison Charts

These Eggplant Performance Analyzer REST methods are for working with comparison charts. You use the following URL with a GET HTTP method to return data for a comparison chart, or a DELETE HTTP method to delete a comparison chart. The GET method is shown first, followed by the DELETE method.

URL

/analyzer/api/1.0/comparisons/<comparison>/comparison chart

HTTP Method

GET: Get the data for a specified comparison chart.

Response Parameters

ParameterTypeDescription
chartDataobjectThe series and data values for the chart.

Example Request

http://localhost:5000/analyzer/api/1.0/comparisons/My%20Comparison/Transactions%20Response%20Time%20%2895th%20Percentile%29

Example Response

{
"chartData": {
"<COMBINED>": {
"Series 1/Test 1.1/View 1": 5.236,
"Series 1/Test 1.2/View 1": 6.872
},
"Login": {
"Series 1/Test 1.1/View 1": 2.981,
"Series 1/Test 1.2/View 1": 4.247
},
"Logout": {
"Series 1/Test 1.1/View 1": 4.473,
"Series 1/Test 1.2/View 1": 5.229
},
"Search": {
"Series 1/Test 1.1/View 1": 9.156,
"Series 1/Test 1.2/View 1": 7.951
}
}
}

HTTP Method

DELETE: Deletes a comparison chart.

Response Parameters

ParameterTypeDescription
comparisonstringThe URL of the comparison that contained the comparison chart.

Example Request

http://localhost:5000/analyzer/api/1.0/comparisons/My%20Comparison/Transactions%20Response%20Time%20%2895th%20Percentile%29

Example Response

{
"comparison": "http://localhost:5000/analyzer/api/1.0/comparisons/My%20Comparison"
}