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
-
serviceMockId
integerrequired
The Virtual Service identifier
-
workspaceId
integerrequired
The Workspace identifier
-
requestId
integerrequired
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
}