The response must be checked to define if the data is available, based on the following possible return data:
Large reports are split into pages (up to 5.5MB per page). You can find the total number of pages in the response and use this value to retrieve all the report pages.
Example Response
{
"reportId": "d0ce659c-e71e-4aea-b5a7-b817482c4ac9",
"reportName": "demo_report",
"userId": "[email protected]",
"params": {
"filter": [
"sourceName CONTAINS myapp.jar",
"className CONTAINS com/company/firstclass",
"methodName CONTAINS mymethod"
],
"from": "2024-10-14T03:46:00.000+0200",
"to": "2024-10-15T03:59:59.999+0200",
"resolvedFrom": "2024-10-14T03:46:00.000",
"resolvedTo": "2024-10-15T03:59:59.999"
},
"state": "SUCCEEDED",
"requestTime": "2024-10-15T03:47:36.472",
"startTime": "2024-10-15T03:47:36.594",
"finishTime": "2024-10-15T03:47:37.352",
"totalCount": 2,
"data": [
{
"sourceName": "myapp.jar",
"className": "com/company/firstclass",
"methodName": "mymethod(java/lang/String)",
"firstSeen": "2024-10-02T12:37:46.989",
"lastSeen": "2024-10-10T11:02:23.371",
"AppEnv": "UNDEFINED"
},
{
"sourceName": "myapp.jar",
"className": "com/company/firstclass",
"methodName": "mymethod(java/lang/String)",
"firstSeen": "2024-10-10T12:37:46.989",
"lastSeen": "2024-10-16T11:02:23.371",
"AppEnv": "UNDEFINED"
}
]
}
When the JMV is configured with the AppEnv
tag, as described here, the data block includes that extra info. For example:
{
"reportId": "d0ce659c-e71e-4aea-b5a7-b817482c4ac9",
...
"data": [
{
"sourceName": "myapp.jar",
"className": "com/company/firstclass",
"methodName": "mymethod(java/lang/String)",
"firstSeen": "2024-10-02T12:37:46.989",
"lastSeen": "2024-10-10T11:02:23.371",
"AppEnv": "your_tag"
},
...
],
...
}