queryMultiplePointHistData.sh 592 B

123456789101112131415161718192021
  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=10
  7. echo "----test query range days:$days"
  8. beginDate="2021-07-01 00:00:00"
  9. echo beginDate:beginDate
  10. #endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  11. endDate="2021-07-02 00:00:00"
  12. echo endDate:$endDate
  13. java -cp ./lib/influxdb.jar demo.query.histQuery.flow.QueryMultiPointHistData \
  14. --host $host --pointNamePrefix pointName1_ --pointCount $pointCount --pointIndex $pointIndex \
  15. --beginDate "$beginDate" --endDate "$endDate" \
  16. --showQueryResult 100 2>&1 | tee -a ./log/influxdb/out.log