iconnor wrote: ↑Wed Jul 09, 2025 9:25 pm
If you put pagination=true in the query it should restore the old behaviour of returning paginated results.
If you mean something like
Code: Select all
/zm/api/events/index/MonitorId:1.json?pagination=true&sort=StartDateTime&direction=desc&limit=3&page=0
than no, it doesn't work in recent 1.37.66~20250706231158
It disregards sort direction and returns 3
first events instead of 3
last events.
Also, with or without limit, it always returns single page and number of pageCount = 1
Code: Select all
"pagination": {
"prevPage": false,
"nextPage": true,
"paramType": "named",
"pageCount": 1,
"options": [],
"page": 1
}
pagination and page query parameters are completely ignored.
Could you please give a simple query example that returns just
N last events for the given monitor? (with pagination or without, doesn't matter)