metrics: scaling: store json int results as non-strings

We were storing some JSON data (such as NUM_PODS) as strings.
This would default their type into the Elastic DB as strings,
and not ints. May as well store ints as ints, so make that so.

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
Graham Whaley
2019-07-30 15:16:21 +01:00
committed by David Lyle
parent 5c9a5df264
commit 42359e1f8e
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -148,10 +148,10 @@ save_config(){
local json="$(cat << EOF
{
"testname": "${TEST_NAME}",
"NUM_PODS": "${NUM_PODS}",
"STEP": "${STEP}",
"wait_time": "${wait_time}",
"delete_wait_time": "${delete_wait_time}"
"NUM_PODS": ${NUM_PODS},
"STEP": ${STEP},
"wait_time": ${wait_time},
"delete_wait_time": ${delete_wait_time}
}
EOF
)"
+5 -5
View File
@@ -114,11 +114,11 @@ save_config(){
local json="$(cat << EOF
{
"testname": "${TEST_NAME}",
"NUM_PODS": "${NUM_PODS}",
"STEP": "${STEP}",
"wait_time": "${wait_time}",
"delete_wait_time": "${delete_wait_time}",
"settle_time": "${settle_time}"
"NUM_PODS": ${NUM_PODS},
"STEP": ${STEP},
"wait_time": ${wait_time},
"delete_wait_time": ${delete_wait_time},
"settle_time": ${settle_time}
}
EOF
)"