123456789101112131415161718192021 |
- #!/usr/bin/env bash
- ROOT=$(cd `dirname $0`/../../../; pwd)
- cd $ROOT
- source $ROOT/shell/tsdb/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-06-01 00:00:00"
- endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
- echo endDate:$endDate
- java -cp ./lib/tsdb.jar demo.query.histQuery.QueryHistData \
- --host=$host --pointNamePrefix=pointName_ --pointCount=$pointCount \
- --beginDate="$beginDate" --endDate="$endDate" \
- --showQueryResult=0 2>&1 | tee -a ./log/tsdb/out.log
- done
|