Request the analytics of a virtual service
You can retrieve inspection data for any virtual service through our analytics endpoint.
To get more in-depth inspection data about the request and the response, you need to know the request ID, workspace identifier and the virtual service identifier. The sample code uses a requestId of 7777, a serviceMockId of 1234 and a workspaceId of 123456. Use the actual ID values of your log, workspace, and virtual service.
Minimum parameters for getting the analytics of a virtual service
The following parameters are the base parameters required to request inspection data of a virtual service.
Get the analytics of a virtual service request attributes
Attributes
-
serviceMockIdintegerrequired
The virtual service identifier
-
workspaceIdintegerrequired
The workspace identifier
-
requestIdintegerrequired
The virtual service request identifier.
Get the analytics of a virtual serviceMinimum configuration sample
curl 'https://analytics.blazemeter.com/reports/api/v1/workspaces/123456/inspection-data/requests/7777' \
-X GET \
-H 'accept: application/json;charset=UTF-8'
Response200 OK
{
"apiVersion" : 1,
"error" : null,
"result" : {
"serviceMockId" : 114193,
"type" : "TRANSACTIONAL",
"stepDetails" : null,
"matchingData" : null,
"sessionData" : null,
"requestBody" : "",
"requestHeaders" : [ {
"key" : "Host",
"value" : "test131142.mock.blazemeter.com"
}, {
"key" : "X-Request-ID",
"value" : "f3b9c1320xxxx219e4e369186852516d"
}, ..., {
"key" : "Accept-Encoding",
"value" : "gzip, deflate, br"
}, {
"key" : "Accept-Language",
"value" : "en-GB,en-US;q=0.9,en;q=0.8,cs;q=0.7"
} ],
"responseBody" : "Tm8gbWF0Y2ggRm91bmQ=",
"responseHeaders" : [ ],
"statusCode" : 404,
"hash" : null,
"filters" : null,
"parameters" : null,
"changedRowsCount" : null
},
"requestId" : null
}