aggHistDataOverTime.sh 607 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. #host=39.104.80.229
  5. host=127.0.0.1
  6. for days in 1 2 3 4 5 6 7 15 30 60 90 180 360
  7. do
  8. echo "----test query range days:$days"
  9. beginDate="2020-07-01 00:00:00"
  10. echo beginDate:beginDate
  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.AggHistDataOverTime \
  14. --host=$host --pointNamePrefix=pointName_ --pointCount=1 \
  15. --beginDate="$beginDate" --endDate="$endDate" --aggMethod=max \
  16. --showQueryResult=3 2>&1 | tee -a ./log/tsdb/out.log
  17. done