diff options
author | Filip Krzywka <filip.krzywka@nokia.com> | 2019-04-08 12:40:26 +0200 |
---|---|---|
committer | Filip Krzywka <filip.krzywka@nokia.com> | 2019-04-10 09:34:24 +0000 |
commit | 4d76345d06ee7591d839723a82026f6d8e756c65 (patch) | |
tree | 4bbf6174d9ca95001aa1bc9b4b7e6345102feae4 /development/bin/dcae-msgs.sh | |
parent | d52444107a3c62c1027e35178b76645ceb4d2c4e (diff) |
Update development scripts
Change-Id: I51c6f834ea6d47d055baab81d08eb7484eebef20
Issue-ID: DCAEGEN2-1399
Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
Diffstat (limited to 'development/bin/dcae-msgs.sh')
-rwxr-xr-x | development/bin/dcae-msgs.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/development/bin/dcae-msgs.sh b/development/bin/dcae-msgs.sh index 964be14f..84cef972 100755 --- a/development/bin/dcae-msgs.sh +++ b/development/bin/dcae-msgs.sh @@ -20,8 +20,10 @@ set -euo pipefail usage() { - echo "Return current amount of consumed messages by dcae-app-simulator" - echo "Usage: $0 [-h|--help] [-v|--verbose]" + echo "Return current amount of consumed messages by dcae-app-simulator on given topic" + echo "Usage: $0 [-h|--help] [-v|--verbose] <topic>" + echo "" + echo " - topic : kafka topic to retrieve messages from, default `HV_VES_PERF3GPP`" exit 1 } @@ -56,12 +58,14 @@ while getopts "$optspec" arg; do done shift $((OPTIND-1)) +TOPIC=${1:-HV_VES_PERF3GPP} + DEVELOPMENT_BIN_DIRECTORY=$(realpath $(dirname "$0")) source ${DEVELOPMENT_BIN_DIRECTORY}/constants.sh if [ -n "${VERBOSE+x}" ]; then - echo "All messages count currently consumed by dcae app simulator: " + echo "All messages count currently consumed by dcae app simulator on topic ${TOPIC}: " fi -curl --request GET ${DCAE_APP_ADDRESS}/messages/all/count +curl --request GET ${DCAE_APP_ADDRESS}/messages/${TOPIC}/count echo |