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