check data for last 1 min
@@ -290,7 +290,7 @@ echo
echo "======================= RANDOMWALK SETUP COMPLETE ======================="
-# Add Randomwalk South Again
+echo "Add Randomwalk south service again ..."
curl -sX POST "$URL/service" -d \
'{
"name": "Random1",
@@ -378,7 +378,7 @@ curl -sX POST "$URL/category/Random1_PF/script/upload" -F "script=@scripts/ema.p
echo
for LOOP in $(seq ${MAX_RETRIES}); do
- RESULT=`curl -sX GET "$URL/asset/randomwalk1?seconds=600"`
+ RESULT=`curl -sX GET "$URL/asset/randomwalk1?seconds=60"`
# echo ${RESULT}
RANDOM_RESULT=`echo ${RESULT} | jq '.[0].reading.randomwalk // empty'`
EMA=`echo ${RESULT} | jq '.[0].reading.ema // empty'`
@@ -386,7 +386,7 @@ for LOOP in $(seq ${MAX_RETRIES}); do
done
if [[ ${LOOP} -eq ${MAX_RETRIES} ]]
then
- display_and_collect_err "TIMEOUT! randomwalk1 and ema data not seen in randomwalk1 graph. $URL/asset/randomwalk1?seconds=600"
+ display_and_collect_err "TIMEOUT! randomwalk1 and ema data not seen in randomwalk1 graph. $URL/asset/randomwalk1?seconds=60"
if [[ ${EXIT_EARLY} -eq 1 ]]; then exit 1; fi
else
echo "---- randomwalk1 and ema data seen in randomwalk1 graph ----"
