aggHistDataOverTime.sh 549 B

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