Eggplant Performance Test Controller:
GET Metric Total Rates Method

This method gets the total rates over time of a set of metrics. Note that you must specify at least one metric name in the query data.

URL

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

HTTP Method

GET: Get the total rates over time of a set of metrics.

URL Query Parameters

Parameter Description
metric The name of a custom metric. Note that you can specify more than one metric name.
after_time A time, expressed in milliseconds since Jan 1st 1970. Only transactions that are completed after this time are considered.
bucket_size A time interval, expressed in seconds. Returned data are 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 total rates at which the metrics were occurring at this point in time.

Example Request

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

Example Response

{

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

"widgetsCreated": 23.297,

"widgetsDestroyed": 28.396,

"<COMBINED>": 51.693

},

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

"widgetsCreated": 10.499,

"widgetsDestroyed": 0,

"<COMBINED>": 10.499

},

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

"widgetsCreated": 0,

"widgetsDestroyed": 9.899,

"<COMBINED>": 9.899

},

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

"widgetsCreated": 184.476,

"widgetsDestroyed": 67.991,

"<COMBINED>": 252.467

}

}

 

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