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 ed76ea3 + 480edb0 commit 8553277Copy full SHA for 8553277
examples/Monitor/eg001GetMonitoringData.sh
@@ -16,8 +16,16 @@ declare -a Headers=('--header' "Authorization: Bearer ${ACCESS_TOKEN}"
16
# the monitoring records
17
18
#ds-snippet-start:Monitor1Step3
19
+if date -v -10d &>/dev/null; then
20
+ # Mac
21
+ cursorDate=$(date -v -1y '+%Y-%m-%d')
22
+else
23
+ # Not a Mac
24
+ cursorDate=$(date --date='-1 year' '+%Y-%m-%d')
25
+fi
26
+
27
complete=false
-cursorValue=""
28
+cursorValue="${cursorDate}T00:00:00Z"
29
iterations=0
30
31
while [ $complete == false ]; do
0 commit comments