12345678910111213141516171819 |
- #!/usr/bin/env bash
- ROOT=$(cd `dirname $0`/../../../; pwd)
- cd $ROOT
- source $ROOT/shell/tsdb/common.sh
- for days in 1 2 3 4 5 6 7 15 30 60 90 180 360
- do
- echo "----test query range days:$days"
- beginDate="2020-07-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/tsdb.jar demo.query.histQuery.AggHistDataOverTime \
- --host=$host --pointNamePrefix=pointName_ --pointCount=1 \
- --beginDate="$beginDate" --endDate="$endDate" --aggMethod=max \
- --showQueryResult=3 2>&1 | tee -a ./log/tsdb/out.log
- done
|