queryFlowHistData.sh 644 B

1234567891011121314151617181920212223
  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. pointCount=10
  7. pointIndex=1
  8. for days in 1 2 3 4 7 15
  9. do
  10. echo "----test query range days:$days"
  11. beginDate="2022-11-27 00:00:00"
  12. echo beginDate:beginDate
  13. endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  14. echo endDate:$endDate
  15. java -cp ./lib/influxdb.jar demo.query.histQuery.flow.QueryMultiPointHistData \
  16. --host $host --pointNamePrefix pointName1_ --pointCount $pointCount --pointIndex $pointIndex \
  17. --beginDate "$beginDate" --endDate "$endDate" \
  18. --showQueryResult 100 2>&1 | tee -a ./log/influxdb/out.log
  19. done