queryHistData.sh 597 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. #host=39.104.80.229
  3. host=127.0.0.1
  4. pointCount=10
  5. pointIndex=1
  6. for days in 1 2 3 4 7 15
  7. do
  8. echo "----test query range days:$days"
  9. beginDate="2022-11-27 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/influxdb.jar demo.query.histQuery.QueryMultiPointHistData \
  14. --host $host --pointNamePrefix pointName1_ --pointCount $pointCount --pointIndex $pointIndex \
  15. --beginDate "$beginDate" --endDate "$endDate" \
  16. --showQueryResult 10 2>&1 | tee -a ./log/influxdb/out.log
  17. done