querySinglePointHistData.sh 585 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. source $ROOT/shell/tsdb/common.sh
  5. pointCount=1
  6. pointIndex=1
  7. for days in 1 2 3 4 7 15 30 60 90 180
  8. do
  9. echo "----test query range days:$days"
  10. beginDate="2018-06-01 00:00:00"
  11. endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  12. echo endDate:$endDate
  13. java -cp ./lib/tsdb.jar demo.query.histQuery.QueryHistData \
  14. --host=$host --pointNamePrefix=pointName_ --pointCount=$pointCount \
  15. --beginDate="$beginDate" --endDate="$endDate" \
  16. --showQueryResult=0 2>&1 | tee -a ./log/tsdb/out.log
  17. done