Follow

Get Requests Stats report

Description

This API retrieves the Requests Stats report in a JSON format.
This function includes parameters to identify both the user and the session.

URL

https://a.blazemeter.com:443/api/latest/sessions/sessionID/reports/main/summary

Request Parameters

Parameter Description
API Key Identifies the user ( --user 'id:secret' ). How to get the API Key?
Session ID Identifies the Session. How to get the Session ID?

cURL

curl -X get https://a.blazemeter.com/api/latest/sessions/<sessionID>/reports/main/summary -H "Content-Type: application/json" --user "id:secret"

Python

import requests

def getAggregate(session_id):
	return requests.get('https://a.blazemeter.com/api/latest/sessions/{0}/reports/main/summary'.format(session_id), auth=('id','secret')

res = getAggregate("<sessionID>")

print res.json()

Example Response

{
    "api_version": 2,
    "error": null,
    "result": {
        "summary": [
            {
                "first": 1437939953,
                "last": 1437939998,
                "bytes": 18924,
                "failed": 0,
                "zeroBytesSampleSanitized": 0,
                "zeroLatencySamplesSanitized": 0,
                "zeroTimestampedSampleNotCounted": 0,
                "otherErrorsSpillcount": 0,
                "min": 110,
                "max": 994,
                "sumLn": 1024.6519046839,
                "latencyMin": 1,
                "latencyMax": 100,
                "latencySumLn": 597.04087993147,
                "bytesMin": 114,
                "bytesMax": 114,
                "bytesSumLn": 786.20894243349,
                "hits": 166,
                "duration": 45,
                "latencyAvg": 49.78313253012,
                "latencySTD": 29.643280062062,
                "bytesAvg": 114,
                "bytesSTD": 0,
                "std": 256.2749442274,
                "tp90": 903,
                "tp95": 936,
                "tp99": 989,
                "avg": 551.16265060241,
                "lb": "ALL",
                "id": "ALL",
                "geoMean": 479.43188760595,
                "latencyGeoMean": 36.475171885458,
                "bytesGeoMean": 114
            },
            {
                "first": 1437939953,
                "last": 1437939997,
                "bytes": 6498,
                "failed": 0,
                "zeroBytesSampleSanitized": 0,
                "zeroLatencySamplesSanitized": 0,
                "zeroTimestampedSampleNotCounted": 0,
                "otherErrorsSpillcount": 0,
                "min": 143,
                "max": 994,
                "sumLn": 355.13709829458,
                "latencyMin": 2,
                "latencyMax": 99,
                "latencySumLn": 197.432394508,
                "bytesMin": 114,
                "bytesMax": 114,
                "bytesSumLn": 269.96331155849,
                "hits": 57,
                "duration": 44,
                "latencyAvg": 45.473684210526,
                "latencySTD": 30.601057924126,
                "bytesAvg": 114,
                "bytesSTD": 0,
                "std": 238.44061729881,
                "tp90": 928,
                "tp95": 947,
                "tp99": 987,
                "avg": 564.42105263158,
                "lb": "1",
                "id": "1",
                "geoMean": 507.99693224727,
                "latencyGeoMean": 31.935754710413,
                "bytesGeoMean": 114
            },
            {
                "first": 1437939953,
                "last": 1437939998,
                "bytes": 6384,
                "failed": 0,
                "zeroBytesSampleSanitized": 0,
                "zeroLatencySamplesSanitized": 0,
                "zeroTimestampedSampleNotCounted": 0,
                "otherErrorsSpillcount": 0,
                "min": 115,
                "max": 989,
                "sumLn": 341.75411378533,
                "latencyMin": 1,
                "latencyMax": 94,
                "latencySumLn": 197.617793317,
                "bytesMin": 114,
                "bytesMax": 114,
                "bytesSumLn": 265.22711311009,
                "hits": 56,
                "duration": 44,
                "latencyAvg": 47.196428571429,
                "latencySTD": 26.382095960043,
                "bytesAvg": 114,
                "bytesSTD": 0,
                "std": 254.45256301319,
                "tp90": 865,
                "tp95": 915,
                "tp99": 949,
                "avg": 520.51785714286,
                "lb": "2",
                "id": "2",
                "geoMean": 447.08647482197,
                "latencyGeoMean": 34.086082609976,
                "bytesGeoMean": 114
            },
            {
                "first": 1437939954,
                "last": 1437939997,
                "bytes": 6042,
                "failed": 0,
                "zeroBytesSampleSanitized": 0,
                "zeroLatencySamplesSanitized": 0,
                "zeroTimestampedSampleNotCounted": 0,
                "otherErrorsSpillcount": 0,
                "min": 110,
                "max": 991,
                "sumLn": 327.76069260398,
                "latencyMin": 4,
                "latencyMax": 100,
                "latencySumLn": 201.99069210646,
                "bytesMin": 114,
                "bytesMax": 114,
                "bytesSumLn": 251.01851776491,
                "hits": 53,
                "duration": 43,
                "latencyAvg": 57.150943396226,
                "latencySTD": 30.469530853473,
                "bytesAvg": 114,
                "bytesSTD": 0,
                "std": 273.20214213355,
                "tp90": 903,
                "tp95": 927,
                "tp99": 932,
                "avg": 569.28301886792,
                "lb": "3",
                "id": "3",
                "geoMean": 485.00733347779,
                "latencyGeoMean": 45.202171787691,
                "bytesGeoMean": 114
            }
        ],
        "jmeterLogSummary": [],
        "jmeterLogTypeSummary": [],
        "availableFields": [
            "id",
            "samples",
            "avg",
            "geoMean",
            "latencyGeoMean",
            "bytesGeoMean",
            "std",
            "tp90",
            "tp95",
            "tp99",
            "min",
            "max",
            "bytes",
            "hits",
            "failed",
            "duration"
        ]
    }
}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.