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