Eggplant PerformanceTest Controller:
GET Metric Concurrency Method

This method gets the counts of concurrent open and closed metrics over time. Note that you must specify an open metric name and a closed metric name in the query data.

Note: This method only provides useful information when running multiple VUs in the test.

URL

/test_controller/api/1.0/<workspace>/<project>/<test>/metrics/concurrency

HTTP Method

GET: Get the count of concurrent metrics for multiple running VUs over time.

URL Query Parameters

Parameter Description
open_metric The name of a custom (open) metric.
close_metric The name of a custom (closed) metric.
after_time A time, expressed in milliseconds since Jan 1st 1970. Only transactions that completed after this time are considered.
bucket_size A time interval, expressed in seconds. Returned data is resampled to this interval.

Response Parameters

The response is an object where the entries are timestamps. For each timestamp, there is an object specifying the concurrent count of the metrics at this point in time.

Example Request

http://localhost:5001/test_controller/api/1.0/Demo%20Workspace/Demo/demoScript/metrics/concurrency?open_metric=widgetsCreated&close_metric=widgetsDestroyed&bucket_size=30

Example Response

{

"2016-09-17T10:12:00.000Z": {

"widgetsCreated": 4,

"widgetsDestroyed": 6

},

"2016-09-17T10:12:30.000Z": {

"widgetsCreated": 5,

"widgetsDestroyed": 5

},

"2016-09-17T10:13:00.000Z": {

"widgetsCreated": null,

"widgetsDestroyed": null

},

"2016-09-17T10:13:30.000Z": {

"widgetsCreated": 8,

"widgetsDestroyed": 4

}

}

 

This topic was last updated on January 13, 2022, at 02:42:23 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant