You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ho...@apache.org on 2021/07/22 07:54:54 UTC

[skywalking-cli] branch fgksgf-patch-1 created (now 6aac1ae)

This is an automated email from the ASF dual-hosted git repository.

hoshea pushed a change to branch fgksgf-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git.


      at 6aac1ae  set display style explicitly

This branch includes the following new commits:

     new 6aac1ae  set display style explicitly

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[skywalking-cli] 01/01: set display style explicitly

Posted by ho...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hoshea pushed a commit to branch fgksgf-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git

commit 6aac1aeda0a0d7cf8e4df7055694036d897c8a3f
Author: Hoshea Jiang <fg...@gmail.com>
AuthorDate: Thu Jul 22 15:54:37 2021 +0800

    set display style explicitly
---
 scripts/test_commands.sh | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/scripts/test_commands.sh b/scripts/test_commands.sh
index 3fe3fee..e72d3d1 100755
--- a/scripts/test_commands.sh
+++ b/scripts/test_commands.sh
@@ -36,11 +36,11 @@ while ! ${swctl} ch > /dev/null 2>&1; do
   retries=$(($retries+1))
 done;
 
-${swctl} metrics ls > /dev/null 2>&1
+${swctl} --display=json metrics ls > /dev/null 2>&1
 
-${swctl} service ls > /dev/null 2>&1
+${swctl} --display=json service ls > /dev/null 2>&1
 
-${swctl} endpoint ls --service-id="test" > /dev/null 2>&1
+${swctl} --display=json endpoint ls --service-id="test" > /dev/null 2>&1
 
 SERVICE_SCOPE_METRICS=(
   service_resp_time
@@ -50,19 +50,19 @@ SERVICE_SCOPE_METRICS=(
 )
 
 for metrics in "${SERVICE_SCOPE_METRICS[@]}"; do
-  ${swctl} metrics linear --name="$metrics" --service="test" > /dev/null 2>&1
+  ${swctl} --display=json metrics linear --name="$metrics" --service="test" > /dev/null 2>&1
 
-  ${swctl} metrics single --name="$metrics" --service="test" > /dev/null 2>&1
+  ${swctl} --display=json metrics single --name="$metrics" --service="test" > /dev/null 2>&1
 
-  ${swctl} metrics top 3 --name="$metrics" > /dev/null 2>&1
+  ${swctl} --display=json metrics top 3 --name="$metrics" > /dev/null 2>&1
 done
 
-${swctl} metrics multiple-linear --name="all_percentile" > /dev/null 2>&1
+${swctl} --display=json metrics multiple-linear --name="all_percentile" > /dev/null 2>&1
 
 # Test `metrics thermodynamic`
-${swctl} metrics hp --name="all_heatmap" >/dev/null 2>&1
+${swctl} --display=json metrics hp --name="all_heatmap" >/dev/null 2>&1
 
-${swctl} trace ls >/dev/null 2>&1
+${swctl} --display=json trace ls >/dev/null 2>&1
 
 # Test `dashboard global`
-${swctl} db g >/dev/null 2>&1
+${swctl} --display=json db g >/dev/null 2>&1