queryMultiplePointHistData.sh 636 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. #host=39.104.80.229
  3. host=127.0.0.1
  4. days=1
  5. pointIndex=1
  6. pointCount=(1)
  7. echo "----test query range days:$days"
  8. beginDate="2021-12-28 00:00:00"
  9. echo beginDate:beginDate
  10. #endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  11. endDate="2021-12-28 00:01:00"
  12. echo endDate:$endDate
  13. for pointCount in 1 2 3 5 10 20 30 50 100
  14. do
  15. java -cp ./lib/influxdb.jar demo.query.histQuery.QueryMultiPointHistData \
  16. --host $host --pointNamePrefix pointName1_ --pointCount $pointCount --pointIndex $pointIndex \
  17. --beginDate "$beginDate" --endDate "$endDate" \
  18. --showQueryResult 0 2>&1 | tee -a ./log/influxdb/out.log
  19. done