aggHistDataOverTime.sh 606 B

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