Skip to content

Commit 39f2267

Browse files
committed
DEVDOCS-15802 - explicitly limiting the number of records to 2000 to be consistent with all other code snippets
1 parent c57d199 commit 39f2267

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Services/Examples/Monitor/GetMonitoringDataService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static function getMonitoringData(MonitorApiClientService $clientService)
2727
$cursor = "";
2828
$complete = false;
2929
$options = new GetStreamOptions();
30+
$options->setLimit(2000);
3031
$monitoringLogs = array();
3132

3233
// First call the endpoint with no cursor to get the first records.

0 commit comments

Comments
 (0)