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.
1 parent f5fe986 commit 70ff41cCopy full SHA for 70ff41c
app/monitor/examples/eg001_get_monitoring_data.py
@@ -1,5 +1,6 @@
1
from docusign_monitor import DataSetApi
2
from flask import session
3
+from datetime import datetime, timedelta, timezone
4
5
from app.monitor.utils import create_monitor_api_client
6
@@ -25,9 +26,10 @@ def worker(args):
25
26
)
27
#ds-snippet-end:Monitor1Step2
28
#ds-snippet-start:Monitor1Step3
29
+ cursor_date = datetime.now(timezone.utc).replace(year=datetime.now(timezone.utc).year - 1)
30
dataset_api = DataSetApi(api_client=api_client)
31
- cursor_value = ''
32
+ cursor_value = cursor_date.strftime('%Y-%m-%dT00:00:00Z')
33
limit = 2000
34
function_results = []
35
complete = False
0 commit comments