We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e07a96b + b4c4b79 commit c250704Copy full SHA for c250704
src/Services/Examples/Monitor/GetMonitoringDataService.php
@@ -23,8 +23,9 @@ public static function getMonitoringData(MonitorApiClientService $clientService)
23
try {
24
// Get monitoring data
25
$datasetApi = new DataSetApi($apiClient);
26
-
27
- $cursor = "";
+ $cursorDate = new \DateTime();
+ $cursorDate->modify('-1 year');
28
+ $cursor = $cursorDate->format('Y-m-d') . "T00:00:00Z";
29
$complete = false;
30
$options = new GetStreamOptions();
31
$options->setLimit(2000);
0 commit comments