aggHistDataOverTime.sh 600 B

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