Skip to content

Commit c250704

Browse files
author
nianiB9
authored
Merge pull request #165 from docusign/DEVDOCS-15879
DEVDOCS-15879
2 parents e07a96b + b4c4b79 commit c250704

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Services/Examples/Monitor/GetMonitoringDataService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ public static function getMonitoringData(MonitorApiClientService $clientService)
2323
try {
2424
// Get monitoring data
2525
$datasetApi = new DataSetApi($apiClient);
26-
27-
$cursor = "";
26+
$cursorDate = new \DateTime();
27+
$cursorDate->modify('-1 year');
28+
$cursor = $cursorDate->format('Y-m-d') . "T00:00:00Z";
2829
$complete = false;
2930
$options = new GetStreamOptions();
3031
$options->setLimit(2000);

0 commit comments

Comments
 (0)