12345678910111213141516171819202122 |
- #!/usr/bin/env bash
- ROOT=$(cd `dirname $0`/../../../; pwd)
- cd $ROOT
- source $ROOT/shell/influxdb/common.sh
- pointCount=1
- pointIndex=1
- for days in 1 2 3 4 7 15 30 60 90 180
- do
- echo "----test query range days:$days"
- beginDate="2018-01-01 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.QueryMultiPointHistData \
- --host $host --pointNamePrefix pointName1_ --pointCount $pointCount --pointIndex $pointIndex \
- --beginDate "$beginDate" --endDate "$endDate" \
- --showQueryResult 10 2>&1 | tee -a ./log/influxdb/out.log
- done
|