GET /ops/performance
Description
Get performance data by category. See the cat parameter below for a list of categories.
For example, [/ops/performance?cat0=uri&cat1=method&ago=60h] requests for performance data grouped by uri in the first level of data grouping, and method in the second level of grouping, so the response will contain performance data for different URIs and different HTTP Methods.
The response object will be of the following format:
- processID -
- data - array of performance data objects of the following format
- object - array of values pertaining to the requested list of categories. The number of elements in this array corresponds to the number of requested categories, the first corresponding to the primary requested category (i.e. cat0), etc, etc.
- leg - leg in request processing
- numRequests - Number of requests
- AVG_bytesReceived - Average number of bytes received
- AVG_bytesSent - Average number of bytes sent
- AVG_duration - Average duration of request processing
- MIN_duration - Minumum duration of request processing
- MAX_duration - Maximum duration of request processing
Resource URL
http://localhost:8090/ops/performance
Parameters
| cat{n} | mandatory | Specifies categories of groupings for which to get performance data. The category parameter can be specified multiple times. The category parameter must be suffixed with an integer value {n} (ranging from 0 to 13, which maps to the 14 categories listed below) specifying the priority of the specified category. E.g. the primary category of grouping will be cat0, etc. The possible categories are as follows:
|
||||||||||||||||||||||||||||||
| ago | optional | Integer value specifying the age in milliseconds of the transactions from which performance data will be generated. This value can also be suffixed with one of the following:
|
Response Codes
| Response Code | Description |
|---|---|
| 200 | Success |
Example Request
GET http://localhost:8090/ops/performance?cat0=uri&cat1=method&ago=60h
{
"processId": "",
"data": [
{
"object": [
"/",
"GET"
],
"leg": 1,
"numRequests": 331,
"AVG_bytesReceived": 478,
"AVG_bytesSent": 1812,
"AVG_duration": 1812,
"MIN_duration": 1812,
"MAX_duration": 0
},
{
"object": [
"/favicon.ico",
"GET"
],
"leg": 2,
"numRequests": 327,
"AVG_bytesReceived": 463,
"AVG_bytesSent": 2235,
"AVG_duration": 1985,
"MIN_duration": 2485,
"MAX_duration": 0
},
{
"object": [
"/healthcheck",
"GET"
],
"leg": 1,
"numRequests": 387,
"AVG_bytesReceived": 507,
"AVG_bytesSent": 2969,
"AVG_duration": 2969,
"MIN_duration": 2969,
"MAX_duration": 0
},
{
"object": [
"/healthcheck",
"POST"
],
"leg": 2,
"numRequests": 236,
"AVG_bytesReceived": 314,
"AVG_bytesSent": 4343,
"AVG_duration": 1500,
"MIN_duration": 7187,
"MAX_duration": 0
}
]
}