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": "1cc40ee6-87a7-4147-b02d-7d26ce0387d0",
"userId": "[email protected]",
"params": {
"filter": [
"sourceName CONTAINS myapp.jar",
"className CONTAINS com/company/firstclass",
"methodName CONTAINS mymethod"
],
"from": "2023-02-15T00:00:00.000+0200",
"to": "2023-02-16T23:59:59.999+0200"
},
"from": "2023-07-13T16:42:37.268",
"to": "2023-07-13T16:42:37.268",
"state": "PROCESSING",
"stateMessages": [
"1st message",
"2nd message"
],
"requestTime": "2023-07-13T16:42:37.268",
"startTime": "2023-07-13T16:42:37.268",
"finishTime": "2023-07-13T16:42:47.231",
"data": [
{
"sourceName": "myapp.jar",
"className": "com/company/firstclass",
"methodName": "getHost(java/lang/String)",
"firstSeen": "2023-07-13T16:12:51.181",
"lastSeen": "2023-07-14T11:10:01.112"
}
],
"totalCount": 35352,
"afterToken": "2"
}
When the JMV is configured with the AppEnv
tag, as described here, the data block includes that extra info. For example:
{
"reportId": "1cc40ee6-87a7-4147-b02d-7d26ce0387d0",
...
"data": [
{
"sourceName": "myapp.jar",
"className": "com/company/firstclass",
"methodName": "getHost(java/lang/String)",
"firstSeen": "2023-07-13T16:12:51.181",
"lastSeen": "2023-07-14T11:10:01.112",
"tags": [
"AppEnv:test"
]
}
],
...
}